1

在此处输入图像描述这是 simpleschema 定义中使用的代码。我尝试在我的项目中使用类似的代码,但您可以看到它不起作用。

{ 
  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" 
      } 
    } 
  } 
}
4

1 回答 1

0

autoform-datetimepicker由于Api中的一些错误,我遇到了这个问题。

我在下面添加了以下代码行autoform-bs-datepicker.js

`

this.autorun(function () {
var data = Template.currentData(); 

**if(!data.value)      
  data.value=$('#'+data.atts.id).val();**`
于 2016-05-04T12:12:58.690 回答