From 432c32a3c6aad8307469a4e8f1e8d80e05373c7e Mon Sep 17 00:00:00 2001 From: neverland Date: Mon, 7 Sep 2020 20:57:42 +0800 Subject: [PATCH] fix(List): scoped style not applied to first child (#7128) --- src/list/index.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/list/index.js b/src/list/index.js index 82f1148c1..4a6aef7a5 100644 --- a/src/list/index.js +++ b/src/list/index.js @@ -121,7 +121,7 @@ export default createComponent({ genLoading() { if (this.innerLoading && !this.finished) { return ( -
+
{this.slots('loading') || ( {this.loadingText || t('loading')} )} @@ -156,7 +156,9 @@ export default createComponent({ }, render() { - const Placeholder =
; + const Placeholder = ( +
+ ); return (