mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-01 14:59:35 +08:00
6129ea1216
* chore: form global-state demo supports dark mode * test: update snapshot
1.1 KiB
1.1 KiB
zh-CN
通过 onFieldsChange
和 fields
,可以把表单的数据存储到上层组件或者 Redux、dva 中,更多可参考 rc-field-form 示例。
注意: 将表单数据存储于外部容器并非好的实践,如无必要请避免使用。
en-US
We can store form data into upper component or Redux or dva by using onFieldsChange
and fields
, see more at this rc-field-form demo.
Note: Save Form data globally is not a good practice. You should avoid this if not necessary.