--- order: 1 title: 平行排列 --- 行内排列,常用于登录界面。 ````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(