Skip to content

Commit

Permalink
fix: table emptyText not work
Browse files Browse the repository at this point in the history
  • Loading branch information
tangjinzhou committed May 26, 2018
1 parent e998b59 commit 17b9dc1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion components/table/Table.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -949,6 +949,10 @@ export default {
spinning: loading,
},
}
} else {
loading = {
props: { ...loading },
}
}

const table = (
Expand Down
2 changes: 1 addition & 1 deletion components/vc-pagination/Pager.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import PropTypes from '../_util/vue-types'

export default {
name: 'Page',
name: 'Pager',
props: {
rootPrefixCls: PropTypes.string,
page: PropTypes.number,
Expand Down

0 comments on commit 17b9dc1

Please sign in to comment.