mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-01 03:29:39 +08:00
typo #3473
This commit is contained in:
parent
be02817433
commit
9fe859a31f
@ -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`)
|
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.
|
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
|
#### Special attention
|
||||||
|
|
||||||
|
@ -82,7 +82,7 @@ CustomizedForm = Form.create({})(CustomizedForm);
|
|||||||
|
|
||||||
1. 你不再需要用 `onChange` 来做同步,也不应该给控件单独添加 `value` `onChange` 等属性。(2.0 后会在控制台进行警告)
|
1. 你不再需要用 `onChange` 来做同步,也不应该给控件单独添加 `value` `onChange` 等属性。(2.0 后会在控制台进行警告)
|
||||||
2. 你不能用控件的 `defaultValue` 属性来设置默认值,请用 `getFieldDecorator` 里的 `initialValue`。
|
2. 你不能用控件的 `defaultValue` 属性来设置默认值,请用 `getFieldDecorator` 里的 `initialValue`。
|
||||||
3. 你不需要用 `setState`,可以使用 `this.props.form.setFiledValue` 来动态改变表单值。
|
3. 你不需要用 `setState`,可以使用 `this.props.form.setFieldsValue` 来动态改变表单值。
|
||||||
|
|
||||||
#### 特别注意
|
#### 特别注意
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user