# 平行排列 - order: 1 行内排列,常用于登录界面。 --- ````jsx import { Form, Input, Button, Checkbox } from 'antd'; const FormItem = Form.Item; 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(, mountNode); ````