import React from 'react'; import { FormInstance, FormItemProps, FormProps } from 'antd/lib/form'; import { IntlType } from '@ant-design/pro-provider'; import { BaseQueryFilterProps } from '@ant-design/pro-form'; import { ProSchemaComponentTypes } from '@ant-design/pro-utils'; import { ProColumns } from '../index'; import './index.less'; export interface TableFormItem extends Omit { onSubmit?: (value: T) => void; onReset?: () => void; form?: Omit; type?: ProSchemaComponentTypes; dateFormatter?: 'string' | 'number' | false; search?: false | BaseQueryFilterProps; formRef?: React.MutableRefObject | ((actionRef: FormInstance) => void); } export declare type SearchConfig = BaseQueryFilterProps; export declare const formInputRender: React.FC<{ item: ProColumns; value?: any; form?: FormInstance; type: ProSchemaComponentTypes; intl: IntlType; onChange?: (value: any) => void; onSelect?: (value: any) => void; [key: string]: any; }>; export declare const proFormItemRender: (props: { item: ProColumns; isForm: boolean; type: ProSchemaComponentTypes; intl: IntlType; formInstance?: FormInstance; }) => null | JSX.Element; declare const FormSearch: ({ onSubmit, formRef, dateFormatter, type, onReset, search: searchConfig, form: formConfig, }: TableFormItem) => JSX.Element; export default FormSearch;