import React from 'react'; import { SearchForm, SearchFormProps, validateAndSearch } from '../../layout'; import { Form } from 'antd'; import { DeptSelectField } from '../../common'; import { InputField } from '../../../ant-design-field'; export interface UserSearchFormProps extends SearchFormProps { deptList?: any[]; } export class UserSearchForm extends SearchForm { render() { const { deptList, form } = this.props; const searchOnEnter = this.searchOnEnter.bind(this); return (
{deptList && deptList.length > 0 && ( validateAndSearch(this.props)} allowClear /> )} ); } }