schema 定义
"plan_date": {
"bsonType": "date",
"title": "计划日期",
"componentForEdit": {
"name": "uni-datetime-picker",
"props": {
"type": "date"
}
}
},
生成的代码
<uni-forms-item name="plan_date" label="计划日期" required>
<uni-datetime-picker type="date" return-type="date" v-model="formData.plan_date"></uni-datetime-picker>
</uni-forms-item>
页面显示结果 见附件