设置的表结构
"tags": {
"bsonType": "array",
"arrayType": "string",
"description": "标签ID", //
"title": "标签",
// "foreignKey": "app_static_tags._id",
"componentForShow": {
"name": "uni-tag"
},
"componentForEdit": {
"name": "uni-data-checkbox"
},
"multiple": true,
"maxLength": 20,
"foreignKey": "app_static_tags._id",
"enum": {
"collection": "app_static_tags",
"orderby": "first_letter desc",
"field": "_id as value, name as text"
}
}
生成后
<view>
<text>标签</text>
<uni-tag :value="data.tags"></uni-tag>
</view>
0 个回复