ant-design/components
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__ feat: 🎉 Image component (#26296) 2020-08-22 22:02:20 +08:00
_util refactor: use rc-util for csp (#29804) 2021-03-19 16:23:25 +08:00
affix chore(deps-dev): bump typescript from 4.1.5 to 4.2.2 (#29448) 2021-02-24 20:46:12 +08:00
alert docs(alert): The title is reversed (#29692) 2021-03-10 13:27:49 +08:00
anchor docs: format api (#29537) 2021-03-01 19:20:48 +08:00
auto-complete fix: AutoComplete custom input element className (#29725) 2021-03-11 23:11:51 +08:00
avatar chore(🆙): upgrade devDeps (#29418) 2021-02-23 10:45:11 +08:00
back-top feat: 动画样式添加 prefix (#29268) 2021-02-08 17:09:13 +08:00
badge docs: fix badge english doc (#29531) 2021-02-28 09:09:48 +08:00
breadcrumb docs: format api (#29537) 2021-03-01 19:20:48 +08:00
button refactor: use optional chaining instead of if (#29368) 2021-02-19 18:26:53 +08:00
calendar feat: add fr_CA locale (#29748) 2021-03-14 16:47:32 +08:00
card docs: format api (#29537) 2021-03-01 19:20:48 +08:00
carousel fix: dotPosition make pauseOnHover not working (#29587) 2021-03-02 20:43:33 +08:00
cascader docs: format api (#29537) 2021-03-01 19:20:48 +08:00
checkbox style: better Checkbox/Radio label text layout (#29788) 2021-03-17 14:56:32 +08:00
col
collapse docs: format api (#29537) 2021-03-01 19:20:48 +08:00
comment Add new comments below older instead of the reverse (#29136) 2021-01-31 13:42:52 +08:00
config-provider refactor: use rc-util for csp (#29804) 2021-03-19 16:23:25 +08:00
date-picker feat: add fr_CA locale (#29748) 2021-03-14 16:47:32 +08:00
descriptions docs: format api (#29537) 2021-03-01 19:20:48 +08:00
divider docs: format api (#29537) 2021-03-01 19:20:48 +08:00
drawer fix(drawer): add contentWrapperStyle type declaration (#29571) 2021-03-02 13:13:51 +08:00
dropdown fix: Dropdown menu item disable style with icon (#29433) 2021-02-23 16:48:10 +08:00
empty style: better Checkbox/Radio label text layout (#29788) 2021-03-17 14:56:32 +08:00
form docs: Update dynamic-form-items.md (#29807) 2021-03-24 12:24:22 +08:00
grid fix: row warning when set margin (#29688) 2021-03-11 10:44:18 +08:00
icon docs: format api (#29537) 2021-03-01 19:20:48 +08:00
image fix: image-test (#29410) 2021-02-22 16:03:04 +08:00
input fix: align TextArea maxLength logic (#29867) 2021-03-23 15:03:47 +08:00
input-number docs: Update input number prescion 2021-03-05 12:04:39 +08:00
layout chore(deps-dev): bump typescript from 4.1.5 to 4.2.2 (#29448) 2021-02-24 20:46:12 +08:00
list docs: fixed List itemLayout prop definition (#29592) 2021-03-03 10:50:57 +08:00
locale feat: add fr_CA locale (#29748) 2021-03-14 16:47:32 +08:00
locale-provider style: better Checkbox/Radio label text layout (#29788) 2021-03-17 14:56:32 +08:00
mentions docs: format api (#29537) 2021-03-01 19:20:48 +08:00
menu docs: format api (#29537) 2021-03-01 19:20:48 +08:00
message fix: message with prefixCls should not break (#29574) 2021-03-02 11:53:12 +08:00
modal fix: Modal footer buttons not spaced when using href in button (#29681) 2021-03-09 20:51:43 +08:00
notification merge Feature into master (#29758) 2021-03-13 23:46:32 +08:00
overview docs: fix typo on Component Overview docs (#27919) 2020-11-21 08:29:38 +08:00
page-header refactor: use optional chaining instead of if (#29368) 2021-02-19 18:26:53 +08:00
pagination Include parenthesis on mixin calls to support less 4.0.0 (#28465) 2020-12-22 11:08:12 +08:00
popconfirm refactor: rc-tooltip use motion config (#29555) 2021-03-01 17:25:30 +08:00
popover docs: format api (#29537) 2021-03-01 19:20:48 +08:00
progress docs: format api (#29537) 2021-03-01 19:20:48 +08:00
radio style: better Checkbox/Radio label text layout (#29788) 2021-03-17 14:56:32 +08:00
rate docs: format api (#29537) 2021-03-01 19:20:48 +08:00
result feat: ConfigProvider support iconPrefixCls (#28924) 2021-01-19 17:33:05 +08:00
row
select docs: fix typo in demo (#29661) 2021-03-09 09:07:37 +08:00
skeleton docs: format api (#29537) 2021-03-01 19:20:48 +08:00
slider docs: format api (#29537) 2021-03-01 19:20:48 +08:00
space chore : prettier code (#29123) 2021-01-30 19:39:02 +08:00
spin docs: format api (#29537) 2021-03-01 19:20:48 +08:00
statistic docs: format api (#29537) 2021-03-01 19:20:48 +08:00
steps fix: Steps responsive warning (#29599) 2021-03-03 11:28:38 +08:00
style style: better Checkbox/Radio label text layout (#29788) 2021-03-17 14:56:32 +08:00
switch docs: format api (#29537) 2021-03-01 19:20:48 +08:00
table fix: table demo drag-sorting drag error (#29825) 2021-03-19 17:06:33 +08:00
tabs fix: Tabs active item width changes (#29781) 2021-03-16 14:44:06 +08:00
tag chore: Rm tag hover style (#29874) 2021-03-23 15:22:39 +08:00
time-picker feat: add fr_CA locale (#29748) 2021-03-14 16:47:32 +08:00
timeline chore: add prettier-plugin-jsdoc (#28551) 2020-12-28 15:30:18 +08:00
tooltip docs: format api (#29537) 2021-03-01 19:20:48 +08:00
transfer style: better Checkbox/Radio label text layout (#29788) 2021-03-17 14:56:32 +08:00
tree chore(🆙): upgrade devDeps (#29418) 2021-02-23 10:45:11 +08:00
tree-select chore: fix build (#29671) 2021-03-09 14:45:54 +08:00
typography fix: Typography.Paragraph\Text\Title ts (#29787) 2021-03-23 13:32:37 +08:00
upload fix: (Upload) stopPropagation on file drop (#29832) 2021-03-24 12:23:47 +08:00
version refactor: 📦 Generate version.js from package.json (#23957) 2020-05-08 17:49:22 +08:00
index.tsx fix: exporting common types (#28963) 2021-01-24 23:24:06 +08:00