import { GetQueryPanelUIControlListData } from './api/getQueryPanelUIControl/listData'; export interface ItemConfig extends GetQueryPanelUIControlListData { /** 其他属性 */ [index: string]: any; } /** * 多语言配置 */ export interface LocaleType { /** 筛选按钮 */ filterText: string; /** 确认按钮 */ okText: string; /** 取消按钮 */ cancelText: string; /** 记忆搜索 */ rememberText: string; /** 其他 */ [index: string]: string; } /** * 内嵌查询属性 */ export interface QueryPanelProps { /** 业务标识 */ pageId?: string; /** 查询表单子项配置 */ items?: ItemConfig[]; /** 多语言配置 */ locale?: Partial; /** 查询表单外部受控值, 优先值大于记忆搜索 */ values?: Record; /** 查询表单外部默认值, 优先值大于记忆搜索 */ defaultValues?: Record; /** 是否显示记忆搜索框 */ needRemember?: boolean; /** 筛选图标 */ filterIcon?: string; /** 外部样式类 */ className?: string; /** 取消按钮文案 */ cancelText?: string; /** 确认按钮文案 */ confirmText?: string; /** 外部筛选文案 */ filterText?: string; /** 取消回调 */ onCancel?: () => void; /** 确定回调 */ onOk?: (value: Record) => void; /** 值变动回调 */ onChange?: (value: Record) => void; } /** * 内嵌查询实例方法 */ export interface QueryPanelInstance { /** 获取查询值 */ getSearchValues: () => Record; /** 获取表单子项方法 */ getItem: (name: string) => any; /** 设置查询表单值 */ setFieldValue: (name: string, value: any) => void; /** 主动调用查询方法 */ query: () => Promise; }