fix(List): scoped style not applied to first child (#7202)

This commit is contained in:
neverland 2020-09-18 16:29:35 +08:00 committed by GitHub
parent e026a5614d
commit ffb01671a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -121,7 +121,7 @@ export default createComponent({
genLoading() {
if (this.innerLoading && !this.finished) {
return (
<div class={bem('loading')}>
<div key="loading" class={bem('loading')}>
{this.slots('loading') || (
<Loading size="16">{this.loadingText || t('loading')}</Loading>
)}