import React from "react"; import styles from "./index.less"; import { Form, Input } from "antd"; const CustomizedForm = Form.create({ name: "global_state", onFieldsChange(props, changedFields) { props.onChange(changedFields); }, mapPropsToFields(props) { return { username: Form.createFormField({ ...props.username, value: props.username.value }) }; }, onValuesChange(_, values) { console.log(values); } })(props => { const { getFieldDecorator } = props.form; return (
{JSON.stringify(fields, null, 2)}