# 行内排列的表单 - 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')); ````