fix: list wrong locale variable (#1851)

fix wrong locale variable
pull/1853/head^2
Morphling 2020-03-06 18:46:13 +08:00 committed by GitHub
parent b685f113d0
commit ae0590d794
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -121,7 +121,7 @@ const List = {
},
renderEmpty(prefixCls, renderEmpty) {
const locale = this;
const { locale } = this;
return (
<div class={`${prefixCls}-empty-text`}>
{(locale && locale.emptyText) || renderEmpty(h, 'List')}