This commit is contained in:
afc163 2016-10-19 11:29:14 +08:00
parent be02817433
commit 9fe859a31f
2 changed files with 2 additions and 2 deletions

View File

@ -81,7 +81,7 @@ After wrapped by `getFieldDecorator`, `value` `onChange` props will be added to
1. You don't need to use `onChange` and should not add `value` `onChange` to controls. (There are warnings after `antd@2.0`)
2. You can not set default value via `defaultValue` prop, you should use `initialValue` in `getFieldDecorator` instead.
3. You don't need to call `setState` manully, please use `this.props.form.setFiledValue` to change value programmatically.
3. You don't need to call `setState` manully, please use `this.props.form.setFieldsValue` to change value programmatically.
#### Special attention

View File

@ -82,7 +82,7 @@ CustomizedForm = Form.create({})(CustomizedForm);
1. 你不再需要用 `onChange` 来做同步,也不应该给控件单独添加 `value` `onChange` 等属性。2.0 后会在控制台进行警告)
2. 你不能用控件的 `defaultValue` 属性来设置默认值,请用 `getFieldDecorator` 里的 `initialValue`
3. 你不需要用 `setState`,可以使用 `this.props.form.setFiledValue` 来动态改变表单值。
3. 你不需要用 `setState`,可以使用 `this.props.form.setFieldsValue` 来动态改变表单值。
#### 特别注意