Browse Source

docs: Fix Form.List operation doc table

pull/31746/head
zombiej 3 years ago
parent
commit
f8dc2231d5
  1. 10
      components/form/index.en-US.md
  2. 10
      components/form/index.zh-CN.md

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

@ -193,11 +193,11 @@ Note: You should not configure Form.Item `initialValue` under Form.List. It alwa
Some operator functions in render form of Form.List. Some operator functions in render form of Form.List.
| Property | Description | Type | Default | | Property | Description | Type | Default | Version |
| --- | --- | --- | --- | | --- | --- | --- | --- | --- |
| add | add form item | (defaultValue?: any, insertIndex?: number) => void | insertIndex: 4.6.0 | | add | add form item | (defaultValue?: any, insertIndex?: number) => void | insertIndex | 4.6.0 |
| move | move form item | (from: number, to: number) => void | - | | move | move form item | (from: number, to: number) => void | - | |
| remove | remove form item | (index: number \| number\[]) => void | number\[]: 4.5.0 | | remove | remove form item | (index: number \| number\[]) => void | number\[] | 4.5.0 |
## Form.ErrorList ## Form.ErrorList

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

@ -192,11 +192,11 @@ Form 通过增量更新方式,只更新被修改的字段相关组件以达到
Form.List 渲染表单相关操作函数。 Form.List 渲染表单相关操作函数。
| 参数 | 说明 | 类型 | 默认值 | | 参数 | 说明 | 类型 | 默认值 | 版本 |
| ------ | ---------- | -------------------------------------------------- | ------------------ | | ------ | ---------- | -------------------------------------------------- | ----------- | ----- |
| add | 新增表单项 | (defaultValue?: any, insertIndex?: number) => void | insertIndex: 4.6.0 | | add | 新增表单项 | (defaultValue?: any, insertIndex?: number) => void | insertIndex | 4.6.0 |
| move | 移动表单项 | (from: number, to: number) => void | - | | move | 移动表单项 | (from: number, to: number) => void | - | |
| remove | 删除表单项 | (index: number \| number\[]) => void | number\[]: 4.5.0 | | remove | 删除表单项 | (index: number \| number\[]) => void | number\[] | 4.5.0 |
## Form.ErrorList ## Form.ErrorList

Loading…
Cancel
Save