如上图所示,基于镜像那一列后面的input输入框个选择的button是封装的一个组件,input显示的内容通过Redux获取,且input为ReadOnly并且不能为空,上面的情况是在测试过程中,进入这个页面直接点击提交,会因为required属性报错,然后在报错的状态下改变Redux值赋给Input但是initialValue却拿不到赋值。报错状态不能消失。前提在正常操作流程下是对的。
this.props.form.setFieldsValue({ fields: value }); 可以试试用赋值形式
http://blog.csdn.net/github_36085116/article/details/53835445