--- order: 3 title: zh-CN: 高级搜索 en-US: Advanced search --- ## zh-CN 三列栅格式的表单排列方式,常用于数据表格的高级搜索。 有部分定制的样式代码,由于输入标签长度不确定,需要根据具体情况自行调整。 ## en-US Three columns layout is often used for advanced searching of data table. Because the width of label is not fixed, you may need to adjust it by customizing its style. ````jsx import { Form, Row, Col, Input, Button, Icon } from 'antd'; const FormItem = Form.Item; class AdvancedSearchForm extends React.Component { state = { expand: false, }; handleSearch = (e) => { e.preventDefault(); this.props.form.validateFields((err, values) => { console.log('Received values of form: ', values); }); } handleReset = () => { this.props.form.resetFields(); } toggle = () => { const { expand } = this.state; this.setState({ expand: !expand }); } // To generate mock Form.Item getFields() { const count = this.state.expand ? 10 : 6; const { getFieldDecorator } = this.props.form; const formItemLayout = { labelCol: { span: 5 }, wrapperCol: { span: 19 }, }; const children = []; for (let i = 0; i < 10; i++) { children.push(