# 表单组合 - order: 5 集中营,展示和表单相关的其他 ant-design 组件。 --- ````jsx import { Form, Select, InputNumber, DatePicker, TimePicker, Switch, Radio, Slider, Button, Row, Col, Upload, Icon } from 'antd'; const FormItem = Form.Item; const Option = Select.Option; const RadioButton = Radio.Button; const RadioGroup = Radio.Group; let Demo = React.createClass({ handleSubmit(e) { e.preventDefault(); console.log('收到表单值:', this.props.form.getFieldsValue()); }, normFile(e) { if (Array.isArray(e)) { return e; } return e && e.fileList; }, render() { const { getFieldProps } = this.props.form; return (
); } }); Demo = Form.create()(Demo); ReactDOM.render(