We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4259cf2 commit 8c3fd48Copy full SHA for 8c3fd48
src/components/Table/index.js
@@ -154,7 +154,7 @@ export default {
154
// 这里用于判断接口是否有返回 r.totalCount 或 this.showPagination = false
155
// 当情况满足时,表示数据不满足分页大小,关闭 table 分页功能
156
157
- (!this.showPagination || !r.totalCount && this.showPagination === 'auto') && (this.localPagination = false)
+ (!this.showPagination || !r.totalCount && this.showPagination === 'auto') && (this.localPagination.hideOnSinglePage = true)
158
this.localDataSource = r.data // 返回结果中的数组数据
159
this.localLoading = false
160
})
0 commit comments