diff --git a/components/form/index.en-US.md b/components/form/index.en-US.md index a3968388a2..b926138237 100644 --- a/components/form/index.en-US.md +++ b/components/form/index.en-US.md @@ -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 diff --git a/components/form/index.zh-CN.md b/components/form/index.zh-CN.md index 5b28cc91cb..4bf502abdb 100644 --- a/components/form/index.zh-CN.md +++ b/components/form/index.zh-CN.md @@ -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` 来动态改变表单值。 #### 特别注意