diff --git a/components/form/index.en-US.md b/components/form/index.en-US.md index a2c440d344..d22502ad6c 100644 --- a/components/form/index.en-US.md +++ b/components/form/index.en-US.md @@ -93,7 +93,7 @@ If the form has been decorated by `Form.create` then it has `this.props.form` pr | 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\[]]) | | | setFields | Set value and error state of fields. [Code Sample](https://github.com/react-component/form/blob/3b9959b57ab30b41d8890ff30c79a7e7c383cad3/examples/server-validate.js#L74-L79) | ({
  \[fieldName\]: {value: any, errors: \[Error\] }
}) => void | | | setFieldsValue | Set the value of a field. (Note: please don't use it in `componentWillReceiveProps`, otherwise, it will cause an endless loop, [reason](https://github.com/ant-design/ant-design/issues/2985)) | (
  { \[fieldName\]: value },
  callback: Function
) => void | | -| validateFields | Validate the specified fields and get theirs values and errors. If you don't specify the parameter of fieldNames, you will validate all fields. | (
  \[fieldNames: string\[]],
  \[options: object\],
  callback(errors, values)
) => void | | +| validateFields | Validate the specified fields and get their values and errors. If you don't specify the parameter of fieldNames, you will validate all fields. | (
  \[fieldNames: string\[]],
  \[options: object\],
  callback(errors, values)
) => void | | | 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` | | ### validateFields/validateFieldsAndScroll