Browse Source
* 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>pull/29891/head
yaoweiprc
4 years ago
committed by
GitHub
1 changed files with 9 additions and 9 deletions
Loading…
Reference in new issue