diff --git a/components/form/FormList.tsx b/components/form/FormList.tsx index e1b7b379db..9e7fbafc49 100644 --- a/components/form/FormList.tsx +++ b/components/form/FormList.tsx @@ -21,6 +21,7 @@ export interface FormListProps { prefixCls?: string; name: string | number | (string | number)[]; rules?: ValidatorRule[]; + initialValue?: any[]; children: ( fields: FormListFieldData[], operation: FormListOperation, diff --git a/components/form/index.en-US.md b/components/form/index.en-US.md index 86a8a5c99e..ddc46b17f7 100644 --- a/components/form/index.en-US.md +++ b/components/form/index.en-US.md @@ -169,7 +169,7 @@ Provides array management for fields. | Property | Description | Type | Default | Version | | --- | --- | --- | --- | --- | | children | Render function | (fields: Field\[], operation: { add, remove, move }, meta: { errors }) => React.ReactNode | - | | -| initialValue | Config sub default value. Form `initialValues` get higher priority when conflict | string | - | 4.9.0 | +| initialValue | Config sub default value. Form `initialValues` get higher priority when conflict | any[] | - | 4.9.0 | | name | Field name, support array | [NamePath](#NamePath) | - | | | rules | Validate rules, only support customize validator. Should work with [ErrorList](#Form.ErrorList) | { validator, message }\[] | - | 4.7.0 | diff --git a/components/form/index.zh-CN.md b/components/form/index.zh-CN.md index 396462ce49..659c430ada 100644 --- a/components/form/index.zh-CN.md +++ b/components/form/index.zh-CN.md @@ -170,7 +170,7 @@ Form 通过增量更新方式,只更新被修改的字段相关组件以达到 | 参数 | 说明 | 类型 | 默认值 | 版本 | | --- | --- | --- | --- | --- | | children | 渲染函数 | (fields: Field\[], operation: { add, remove, move }, meta: { errors }) => React.ReactNode | - | | -| initialValue | 设置子元素默认值,如果与 Form 的 `initialValues` 冲突则以 Form 为准 | string | - | 4.9.0 | +| initialValue | 设置子元素默认值,如果与 Form 的 `initialValues` 冲突则以 Form 为准 | any[] | - | 4.9.0 | | name | 字段名,支持数组 | [NamePath](#NamePath) | - | | | rules | 校验规则,仅支持自定义规则。需要配合 [ErrorList](#Form.ErrorList) 一同使用。 | { validator, message }\[] | - | 4.7.0 |