mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-11 23:00:20 +08:00
ed37b80d11
* Update dynamic-form-items.md 原来的代码只有在使用Space包裹多个Form.Item的时候可以跑起来,如果把Space换成div或者其它组件,点击Add Field之后,因为多个Form.Item 通过 {...restField} 指定了相同的key,浏览器会报 Encountered two children with the same key, `0`. Keys should be unique so that components maintain their identity across updates. 换成这种restField的写法可以避免这个问题,让不使用Space包裹多个Form.Item的场景也能跑通不报错。 * Update components/form/demo/dynamic-form-items.md Co-authored-by: afc163 <afc163@gmail.com> Co-authored-by: afc163 <afc163@gmail.com> |
||
---|---|---|
.. | ||
__tests__ | ||
demo | ||
hooks | ||
style | ||
changelog.md | ||
context.tsx | ||
ErrorList.tsx | ||
Form.tsx | ||
FormItem.tsx | ||
FormItemInput.tsx | ||
FormItemLabel.tsx | ||
FormList.tsx | ||
index.en-US.md | ||
index.tsx | ||
index.zh-CN.md | ||
interface.ts | ||
util.ts | ||
v3.en-US.md | ||
v3.zh-CN.md |