import type { MutableRefObject } from 'react'; import React from 'react'; import type { ProColumns } from '@ali-dayu/qi'; import type { FormProps, FormInstance } from 'antd/es/form'; import './style/index.less'; export declare type ProSearchProps = { /** * 搜索表单列 */ columns: ProColumns[]; /** * 是否收起 */ collapsed: boolean; /** * 切换收起状态 */ onCollapsed: (status: boolean) => void; /** * form表单配置,同antd form配置 */ form?: FormProps; /** * form实例 */ formRef?: MutableRefObject | any>; /** * 表格内部操作 */ tableAction?: { name: string; key: string; icon: string; onClick?: () => void; }[]; /** * 表格内部操作自定义渲染,优先级高于tableAction */ tableActionRender?: () => React.ReactNode[]; /** * 搜索表单配置 */ search?: { defaultColsNumber: number; span: number; }; /** * 响应式布局配置 */ responsiveConfig?: { tableWidth: number; defaultColsNumber: number; span: number; }[]; /** * 表格 */ tableContainer?: HTMLElement; /** * 点击筛选时触发 */ onFilter?: (values: any) => void; /** * 点击重置时触发 */ onReset?: () => void; /** * 点击取消时触发 */ onCancel?: () => void; }; export declare const ProSearch: (props: ProSearchProps) => JSX.Element; export default ProSearch;