import React from 'react'; import { Form, Input, Row, Col, Select } from 'antd'; import styles from './index.less'; const FormItem = Form.Item; @Form.create() class Search extends React.Component { componentDidMount() {} /** * 提交表单 */ onSubmitForm = onCallback => { const { form } = this.props; form.validateFields((err, values) => { if (!err && onCallback instanceof Function) { onCallback(values); } }); }; /** * 重置表单 */ onResetForm = () => { const { form } = this.props; form.resetFields(); }; render() { const { form } = this.props; const { getFieldDecorator } = form; return (
{getFieldDecorator('paramModule')()} {getFieldDecorator('paramCode')()} {getFieldDecorator('paramValue')()} {getFieldDecorator('paramState', { initialValue: '' })( , )}
); } } export default Search;