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

update: unicloud-db 新增属性 loadtime

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