提交 565add35 编写于 作者: d-u-a's avatar d-u-a 提交者: qiang

update: unicloud-db组件新增gettree属性

上级 9057f8ef
......@@ -69,6 +69,14 @@ export default {
type: [Boolean, String],
default: false
},
getone: {
type: [Boolean, String],
default: false
},
gettree: {
type: [Boolean, String],
default: false
},
orderby: {
type: String,
default: ''
......@@ -77,10 +85,6 @@ export default {
type: [String, Object],
default: ''
},
getone: {
type: [Boolean, String],
default: false
},
manual: {
type: Boolean,
default: false
......@@ -90,7 +94,7 @@ export default {
return {
loading: false,
hasMore: false,
dataList: this.getone ? {} : [],
dataList: this.getone ? undefined : [],
paginationInternal: {
current: this.pageCurrent,
size: this.pageSize,
......@@ -377,7 +381,8 @@ export default {
size
} = this.paginationInternal
db = db.skip(size * (current - 1)).limit(size).get({
getCount: this.getcount
getCount: this.getcount,
getTree: this.gettree
})
return db
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册