# 水平排列的表单 - order: 2 示例展示了如何通过使用 `Form.create` 来获取和更新表单提交的数值。 --- ````jsx import { Form, Input, Button, Checkbox, Radio, Row, Col } from 'antd'; const FormItem = Form.Item; const RadioGroup = Radio.Group; let Demo = React.createClass({ handleSubmit(e) { e.preventDefault(); console.log('收到表单值:', this.props.form.getFieldsValue()); }, render() { const { getFieldProps } = this.props.form; return (
); } }); Demo = Form.create()(Demo); ReactDOM.render(