diff --git a/components/form/index.en-US.md b/components/form/index.en-US.md index 707cf03508..42c2d7b9a1 100644 --- a/components/form/index.en-US.md +++ b/components/form/index.en-US.md @@ -240,8 +240,8 @@ Provide linkage between forms. If a sub form with `name` prop update, it will au | getFieldValue | Get the value by the field name | (name: [NamePath](#NamePath)) => any | | | isFieldsTouched | Check if fields have been operated. Check if all fields is touched when `allTouched` is `true` | (nameList?: [NamePath](#NamePath)\[], allTouched?: boolean) => boolean | | | isFieldTouched | Check if a field has been operated | (name: [NamePath](#NamePath)) => boolean | | -| isFieldValidating | Check fields if is in validating | (name: [NamePath](#NamePath)) => boolean | | -| resetFields | Reset fields to `initialValues` | (fields?: [NamePath](#NamePath)\[]) => void | | +| isFieldValidating | Check field if is in validating | (name: [NamePath](#NamePath)) => boolean | | +| resetFields | Reset fields to `initialValues` | (fields?: [FieldData](#FieldData)\[]) => void | | | scrollToField | Scroll to field position | (name: [NamePath](#NamePath), options: \[[ScrollOptions](https://github.com/stipsan/scroll-into-view-if-needed/tree/ece40bd9143f48caf4b99503425ecb16b0ad8249#options)]) => void | | | setFields | Set fields status | (fields: [FieldData](#FieldData)\[]) => void | | | setFieldsValue | Set fields value | (values) => void | | diff --git a/components/form/index.zh-CN.md b/components/form/index.zh-CN.md index ae0c514c7e..4629c93df4 100644 --- a/components/form/index.zh-CN.md +++ b/components/form/index.zh-CN.md @@ -239,8 +239,8 @@ Form.List 渲染表单相关操作函数。 | getFieldValue | 获取对应字段名的值 | (name: [NamePath](#NamePath)) => any | | | isFieldsTouched | 检查一组字段是否被用户操作过,`allTouched` 为 `true` 时检查是否所有字段都被操作过 | (nameList?: [NamePath](#NamePath)\[], allTouched?: boolean) => boolean | | | isFieldTouched | 检查对应字段是否被用户操作过 | (name: [NamePath](#NamePath)) => boolean | | -| isFieldValidating | 检查一组字段是否正在校验 | (name: [NamePath](#NamePath)) => boolean | | -| resetFields | 重置一组字段到 `initialValues` | (fields?: [NamePath](#NamePath)\[]) => void | | +| isFieldValidating | 检查对应字段是否正在校验 | (name: [NamePath](#NamePath)) => boolean | | +| resetFields | 重置一组字段到 `initialValues` | (fields?: [FieldData](#FieldData)\[]) => void | | | scrollToField | 滚动到对应字段位置 | (name: [NamePath](#NamePath), options: \[[ScrollOptions](https://github.com/stipsan/scroll-into-view-if-needed/tree/ece40bd9143f48caf4b99503425ecb16b0ad8249#options)]) => void | | | setFields | 设置一组字段状态 | (fields: [FieldData](#FieldData)\[]) => void | | | setFieldsValue | 设置表单的值 | (values) => void | |