# 平行排列 - order: 1 行内排列,常用于登录界面。 --- ````jsx import { Form, Input, Button, Checkbox } from 'antd'; const FormItem = Form.Item; const Demo = React.createClass({ mixins: [Form.ValueMixin], getInitialState() { return { formData: { userName: undefined, password: undefined, agreement: undefined, } }; }, handleSubmit(e) { e.preventDefault(); console.log('收到表单值:', this.state.formData); }, render() { const formData = this.state.formData; return (
); } }); ReactDOM.render(, mountNode); ````