ant-design/components/form/demo
yaoweiprc ed37b80d11
docs: Update dynamic-form-items.md (#29807)
* 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>
2021-03-24 12:24:22 +08:00
..
advanced-search.md chore: Add demo tsx check (#28389) 2020-12-17 15:09:18 +08:00
basic.md chore: Add demo tsx check (#28389) 2020-12-17 15:09:18 +08:00
complex-form-control.md chore: update Form and TreeSelect demo (#29656) 2021-03-08 18:06:49 +08:00
control-hooks.md chore(🆙): upgrade devDeps (#29418) 2021-02-23 10:45:11 +08:00
control-ref.md chore(🆙): upgrade devDeps (#29418) 2021-02-23 10:45:11 +08:00
customized-form-controls.md docs: update link (#29558) 2021-03-01 18:22:03 +08:00
dep-debug.md chore(🆙): upgrade devDeps (#29418) 2021-02-23 10:45:11 +08:00
disabled-input-debug.md docs: add debug on form/disabled-input-debug (#25413) 2020-07-03 16:23:52 +08:00
dynamic-form-item.md chore : prettier code (#29123) 2021-01-30 19:39:02 +08:00
dynamic-form-items-complex.md docs: 🎬 refactor Form demo code 2020-10-20 13:29:04 +08:00
dynamic-form-items.md docs: Update dynamic-form-items.md (#29807) 2021-03-24 12:24:22 +08:00
dynamic-rule.md chore: Add demo tsx check (#28389) 2020-12-17 15:09:18 +08:00
form-context.md chore: Add demo tsx check (#28389) 2020-12-17 15:09:18 +08:00
form-in-modal.md chore: Add demo tsx check (#28389) 2020-12-17 15:09:18 +08:00
global-state.md chore(🆙): upgrade devDeps (#29418) 2021-02-23 10:45:11 +08:00
inline-login.md chore(🆙): upgrade devDeps (#29418) 2021-02-23 10:45:11 +08:00
layout.md chore: Add demo tsx check (#28389) 2020-12-17 15:09:18 +08:00
nest-messages.md chore(🆙): upgrade devDeps (#29418) 2021-02-23 10:45:11 +08:00
normal-login.md chore: Add demo tsx check (#28389) 2020-12-17 15:09:18 +08:00
ref-item.md merge master into Feature (#25262) 2020-06-28 22:41:59 +08:00
register.md chore: update Form and TreeSelect demo (#29656) 2021-03-08 18:06:49 +08:00
required-mark.md chore(🆙): upgrade devDeps (#29418) 2021-02-23 10:45:11 +08:00
size.md chore: Add demo tsx check (#28389) 2020-12-17 15:09:18 +08:00
time-related-controls.md chore: Add demo tsx check (#28389) 2020-12-17 15:09:18 +08:00
validate-other.md chore(🆙): upgrade devDeps (#29418) 2021-02-23 10:45:11 +08:00
validate-static.md fix: Form control clear icon position (#25728) 2020-07-21 16:18:31 +08:00
without-form-create.md chore: Add demo tsx check (#28389) 2020-12-17 15:09:18 +08:00