From 9360c02129cb332779f9e52ac73f19b0ffdedc27 Mon Sep 17 00:00:00 2001 From: Benjy Cui Date: Mon, 7 Nov 2016 11:54:25 +0800 Subject: [PATCH] docs: update docs about resetFields, close: #3746 --- components/form/index.en-US.md | 2 +- components/form/index.zh-CN.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/components/form/index.en-US.md b/components/form/index.en-US.md index 17f6d80614..ca254eb32c 100644 --- a/components/form/index.en-US.md +++ b/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) diff --git a/components/form/index.zh-CN.md b/components/form/index.zh-CN.md index 2f84c4e744..e3a45b8986 100644 --- a/components/form/index.zh-CN.md +++ b/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)