fix: table emptyText not work

pull/29/head
tjz 2018-05-26 22:47:19 +08:00
parent e998b59e7d
commit 17b9dc14f5
2 changed files with 6 additions and 2 deletions

View File

@ -925,7 +925,7 @@ export default {
showHeader,
expandIconColumnIndex,
expandIconAsCell,
emptyText: !(loading.props && loading.spinning) && locale.emptyText,
emptyText: !(loading.props && loading.props.spinning) && locale.emptyText,
},
on: this.$listeners,
class: classString,
@ -949,6 +949,10 @@ export default {
spinning: loading,
},
}
} else {
loading = {
props: { ...loading },
}
}
const table = (

View File

@ -2,7 +2,7 @@
import PropTypes from '../_util/vue-types'
export default {
name: 'Page',
name: 'Pager',
props: {
rootPrefixCls: PropTypes.string,
page: PropTypes.number,