问题是在的组件中value和v-decorator不能在一起使用,官网提示我们要用setFieldsValue
查看了很多方法说把value删除就好了,但是我的问题是要把当前的时间绑定到输入框上
<a-input
:disabled="true"
:dateFormat = 'dateFormat'
v-decorator="['createTime', validatorRules.createTime]"
placeholder="请选择评价时间"
style="width: 100%"
></a-input>
this.$nextTick(()=>{
this.form.setFieldsValue({
createTime :this.nowDate //这个this.nowDate是获取的当前时间,我把时间赋值给输入框的值
})