提交 2c7b8563 编写于 作者: d-u-a's avatar d-u-a

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

上级 ede07a8c
...@@ -126,7 +126,7 @@ export default { ...@@ -126,7 +126,7 @@ export default {
type: [Boolean, String], type: [Boolean, String],
default: false default: false
}, },
exceptForeignKey: { foreignKey: {
type: String, type: String,
default: '' default: ''
}, },
...@@ -482,8 +482,8 @@ export default { ...@@ -482,8 +482,8 @@ export default {
if (this.field) { if (this.field) {
db = db.field(this.field) db = db.field(this.field)
} }
if (this.exceptForeignKey) { if (this.foreignKey) {
db = db.exceptForeignKey(this.exceptForeignKey) db = db.foreignKey(this.foreignKey)
} }
if (this.groupby) { if (this.groupby) {
db = db.groupBy(this.groupby) db = db.groupBy(this.groupby)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册