[bugfix] List: add loading key to avoid render error (#2983)

This commit is contained in:
neverland 2019-03-16 19:05:27 +08:00 committed by GitHub
parent 1cfdb63c35
commit 61a231bde2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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>