ant-design/components/form
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
..
__tests__ chore: update Form and TreeSelect demo (#29656) 2021-03-08 18:06:49 +08:00
demo docs: Update dynamic-form-items.md (#29807) 2021-03-24 12:24:22 +08:00
hooks chore: add prettier-plugin-jsdoc (#28551) 2020-12-28 15:30:18 +08:00
style style: optimize form tooltip cursor style (#29650) 2021-03-08 14:43:35 +08:00
changelog.md feat: New Form (#17327) 2019-07-03 20:14:39 +08:00
context.tsx fix: name connect 2021-01-19 11:53:44 +08:00
ErrorList.tsx chore(🆙): upgrade devDeps (#29418) 2021-02-23 10:45:11 +08:00
Form.tsx refactor: use optional chaining instead of if (#29368) 2021-02-19 18:26:53 +08:00
FormItem.tsx fix: form.item is not type safe due to not forwarding their type para… (#29397) 2021-02-27 23:51:35 +08:00
FormItemInput.tsx chore(🆙): upgrade devDeps (#29418) 2021-02-23 10:45:11 +08:00
FormItemLabel.tsx test: fix test cov (#27065) 2020-10-10 13:32:27 +08:00
FormList.tsx chore(deps-dev): bump eslint-config-prettier from 6.15.0 to 7.0.0 (#28253) 2020-12-09 17:12:32 +08:00
index.en-US.md docs: Minor grammar/spelling tweaks to Form english docs (#29636) 2021-03-06 11:48:05 +08:00
index.tsx chore: feature merge master 2020-09-22 10:56:04 +08:00
index.zh-CN.md docs: format api (#29537) 2021-03-01 19:20:48 +08:00
interface.ts feat: form instance support getFieldInstance (#24711) 2020-06-05 18:06:52 +08:00
util.ts fix: Form List warning (#24867) 2020-06-09 18:10:43 +08:00
v3.en-US.md docs: fix errors in example code (#28677) 2021-01-04 18:43:59 +08:00
v3.zh-CN.md docs: fix errors in example code (#28677) 2021-01-04 18:43:59 +08:00