mirror of
https://github.com/youzan/vant.git
synced 2025-10-17 00:14:18 +00:00
[bugfix] List: add loading key to avoid render error (#2983)
This commit is contained in:
@@ -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>
|
||||
|
Reference in New Issue
Block a user