import { Apis } from '@/gen/Apis'; import { ProFormSelect, QueryFilter } from '@ant-design/pro-components'; import { Form } from 'antd'; type Props = { onChange?: (value: any) => void; }; export default function Search(props: Props) { const [form] = Form.useForm(); return ( { props?.onChange?.(form?.getFieldsValue() || {}); }} > { let res = await Apis.Asset.AssetProjects.Select({ keywords: params?.keyWords, ...params, }); return res?.data; }} placeholder="请选择房屋" /> ); }