# 典型表单 - order: 2 示例展示了如何通过使用 `Form.create` 来获取和更新表单提交的数值。 --- ````jsx import { Form, Input, Button, Checkbox, Radio, Tooltip, Icon } 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; const formItemLayout = { labelCol: { span: 6 }, wrapperCol: { span: 14 }, }; return (
); } }); Demo = Form.create()(Demo); ReactDOM.render(