mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
[bugfix] List: add loading key to avoid render error (#2983)
This commit is contained in:
parent
1cfdb63c35
commit
61a231bde2
@ -117,7 +117,7 @@ export default sfc({
|
||||
<div class={bem()}>
|
||||
{this.slots()}
|
||||
{this.loading && (
|
||||
<div class={bem('loading')}>
|
||||
<div class={bem('loading')} key="loading">
|
||||
{this.slots('loading') || [
|
||||
<Loading class={bem('loading-icon')} />,
|
||||
<span class={bem('loading-text')}>{this.loadingText || t('loading')}</span>
|
||||
|
Loading…
x
Reference in New Issue
Block a user