1
這裏是在simpleschema definition中使用的代碼。我嘗試在我的項目中使用類似的代碼,但正如您所看到的,它不工作。當點擊插件按鈕時,datepicker的值變得越來越明確
{
items:{
type: Array,
optional: true,
minCount: 0,
maxCount: 5
},
"items.$": {
type: Object,
optional: true
},
"items.$.name": {
type: Date,
optional: true,
autoform: {
afFieldInput: {
type: "bootstrap-datetimepicker"
}
}
}
}