mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-05-21 22:09:16 +08:00
fix(List): scoped style not applied to first child (#7128)
This commit is contained in:
parent
bc59e6ea5d
commit
432c32a3c6
@ -121,7 +121,7 @@ export default createComponent({
|
||||
genLoading() {
|
||||
if (this.innerLoading && !this.finished) {
|
||||
return (
|
||||
<div class={bem('loading')} key="loading">
|
||||
<div class={bem('loading')}>
|
||||
{this.slots('loading') || (
|
||||
<Loading size="16">{this.loadingText || t('loading')}</Loading>
|
||||
)}
|
||||
@ -156,7 +156,9 @@ export default createComponent({
|
||||
},
|
||||
|
||||
render() {
|
||||
const Placeholder = <div ref="placeholder" class={bem('placeholder')} />;
|
||||
const Placeholder = (
|
||||
<div ref="placeholder" key="placeholder" class={bem('placeholder')} />
|
||||
);
|
||||
|
||||
return (
|
||||
<div class={bem()} role="feed" aria-busy={this.innerLoading}>
|
||||
|
Loading…
x
Reference in New Issue
Block a user