Browse Source

docs: update docs about resetFields, close: #3746

pull/3736/head
Benjy Cui 8 years ago
parent
commit
9360c02129
  1. 2
      components/form/index.en-US.md
  2. 2
      components/form/index.zh-CN.md

2
components/form/index.en-US.md

@ -70,7 +70,7 @@ If the form has been decorated by `Form.create` then it has `this.props.form` pr
| validateFieldsAndScroll | This function is similar to `validateFields`, but after validation, if the target field is not in visible area of form, form will be automatically scrolled to the target field area. | same as `validateFields` |
| getFieldError | Get the error of a field. | Function(name) |
| isFieldValidating | Check if the specified field is being validated. | Function(name) |
| resetFields | Reset the specified fields' value and status. If you don't specify a parameter, all the fields will be reset. | Function([names: string[]]) |
| resetFields | Reset the specified fields' value(to `initialValue`) and status. If you don't specify a parameter, all the fields will be reset. | Function([names: string[]]) |
| getFieldDecorator | Two-way binding for form, please read below for details. | |
### this.props.form.getFieldDecorator(id, options)

2
components/form/index.zh-CN.md

@ -72,7 +72,7 @@ CustomizedForm = Form.create({})(CustomizedForm);
| validateFieldsAndScroll | 与 `validateFields` 相似,但校验完后,如果校验不通过的菜单域不在可见范围内,则自动滚动进可见范围 | 参考 `validateFields` |
| getFieldError | 获取某个输入控件的 Error | Function(name) |
| isFieldValidating | 判断一个输入控件是否在校验状态 | Function(name) |
| resetFields | 重置一组输入控件的值与状态,如不传入参数,则重置所有组件 | Function([names: string[]]) |
| resetFields | 重置一组输入控件的值(为 `initialValue`与状态,如不传入参数,则重置所有组件 | Function([names: string[]]) |
| getFieldDecorator | 用于和表单进行双向绑定,详见下方描述 | |
### this.props.form.getFieldDecorator(id, options)

Loading…
Cancel
Save