import React from 'react'; import type { FormInstance, FormItemProps, DrawerProps } from 'antd'; import type { BaseQueryFilterProps, ProFormProps } from 'ls-pro-form'; import type { ProSchemaComponentTypes } from 'ls-pro-utils'; import type { ActionType, ProColumns } from '../../typing'; import './index.less'; export declare type SearchConfig = BaseQueryFilterProps & { filterType?: 'query' | 'light'; }; export declare type TableFormItem = { onSubmit?: (value: T, firstLoad: boolean) => void; onReset?: (value: T) => void; form?: Omit; type?: ProSchemaComponentTypes; dateFormatter?: 'string' | 'number' | false; search?: false | SearchConfig; columns: ProColumns[]; formRef: React.MutableRefObject; submitButtonLoading?: boolean; manualRequest?: boolean; bordered?: boolean; gutter?: number; action: React.MutableRefObject; searchSetting?: boolean | { key?: string; resourceId?: string; afterLoad?: () => void; }; isDrawer?: boolean; drawerProps?: Omit; } & Omit; /** * 这里会把 列配置转化为 form 表单 * * @param param0 * @returns */ declare const FormRender: ({ onSubmit, formRef, dateFormatter, type, columns, action, manualRequest, onReset, submitButtonLoading, search: searchConfig, form: formConfig, bordered, searchSetting, gutter, isDrawer, drawerProps, }: TableFormItem) => JSX.Element; export default FormRender;