提交 9c689a53 编写于 作者: d-u-a's avatar d-u-a

update: unicloud-db 新增属性 loadtime

上级 17d083e0
...@@ -25,6 +25,11 @@ const pageMode = { ...@@ -25,6 +25,11 @@ const pageMode = {
add: 'add', add: 'add',
replace: 'replace' replace: 'replace'
} }
const loadMode = {
auto: 'auto',
onready: 'onready',
manual: 'manual'
}
const attrs = [ const attrs = [
'pageCurrent', 'pageCurrent',
...@@ -90,7 +95,7 @@ export default { ...@@ -90,7 +95,7 @@ export default {
default: false default: false
}, },
gettree: { gettree: {
type: [Boolean, String], type: [Boolean, String, Object],
default: false default: false
}, },
gettreepath: { gettreepath: {
...@@ -117,6 +122,14 @@ export default { ...@@ -117,6 +122,14 @@ export default {
type: [Boolean, String], type: [Boolean, String],
default: false default: false
}, },
pageIndistinct: {
type: [Boolean, String],
default: false
},
loadtime: {
type: String,
default: 'auto'
},
manual: { manual: {
type: Boolean, type: Boolean,
default: false default: false
...@@ -146,6 +159,10 @@ export default { ...@@ -146,6 +159,10 @@ export default {
}) })
return al return al
}, (newValue, oldValue) => { }, (newValue, oldValue) => {
if (this.loadtime === loadMode.manual) {
return
}
this.paginationInternal.size = this.pageSize this.paginationInternal.size = this.pageSize
let needReset = false let needReset = false
...@@ -206,7 +223,7 @@ export default { ...@@ -206,7 +223,7 @@ export default {
} }
// #endif // #endif
if (!this.manual) { if (!this.manual && this.loadtime === loadMode.auto) {
this.loadData() this.loadData()
} }
}, },
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册