# 平行排列 - order: 1 行内排列,常用于登录界面。 --- ````jsx import {Form, Input, Button, Checkbox, message} 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(); message.success("收到表单值~~~ :" + JSON.stringify(this.state.formData, function(k, v) { if (typeof v === 'undefined') { return ''; } return v; })); }, render() { const formData = this.state.formData; return (
); } }); ReactDOM.render(, document.getElementById('components-form-demo-inline-form')); ````