diff --git a/packages/uni-cli-shared/components/unicloud-db.vue b/packages/uni-cli-shared/components/unicloud-db.vue index 9ccc16a3e96447ecfbc133629c14bbfa9beb0b97..37e1abdf54788ab4ee88fdd3b8ac3614005649df 100644 --- a/packages/uni-cli-shared/components/unicloud-db.vue +++ b/packages/uni-cli-shared/components/unicloud-db.vue @@ -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