提交 6a7dddfb 编写于 作者: d-u-a's avatar d-u-a

fix(unicloud-db): 某些情况下 修改page-size后组件内部不生效的问题

上级 391dc1af
...@@ -178,12 +178,14 @@ export default { ...@@ -178,12 +178,14 @@ export default {
}) })
return al return al
}, (newValue, oldValue) => { }, (newValue, oldValue) => {
this.paginationInternal.size = this.pageSize
if (newValue[0] !== oldValue[0]) {
this.paginationInternal.current = this.pageCurrent
}
if (this.loadtime === loadMode.manual) { if (this.loadtime === loadMode.manual) {
return return
} }
this.paginationInternal.size = this.pageSize
let needReset = false let needReset = false
for (let i = 2; i < newValue.length; i++) { for (let i = 2; i < newValue.length; i++) {
if (newValue[i] !== oldValue[i]) { if (newValue[i] !== oldValue[i]) {
...@@ -195,9 +197,6 @@ export default { ...@@ -195,9 +197,6 @@ export default {
this.clear() this.clear()
this.reset() this.reset()
} }
if (newValue[0] !== oldValue[0]) {
this.paginationInternal.current = this.pageCurrent
}
this._execLoadData() this._execLoadData()
}) })
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册