import { DatePickerTypes } from '@zgfe/business-lib/es/datePicker/types'; import { EventChartTypes } from '../../types'; import { ReactNode } from 'react'; /** * 右边的查询组件 */ export interface SearchPanelProps { initData?: any; /** * @description 维度类型 */ analysisIndex?: string; /** * @description 维度名称 */ analysisAttr?: string; /** * 地图类型是否可选 */ enableSelectChart?: boolean; /** * 时间 */ time?: DatePickerTypes.Value; /** * 事件id */ eventId?: number; /** * 图表类型 */ chartType?: EventChartTypes; /** * 操作node */ optionNode?: ReactNode; /** * 内容改变回调 */ onChange?: (data: SearchPanelProps) => void; /** * 设置kpi */ setKpi?: Function; /** * 查看kpi */ viewKpi?: Function; /** * 设置预警 */ setWarning?: Function; /** * 查看预警 */ viewWarning?: Function; /** * 最后查询的筛选数据(头部筛选 + 时间筛选) */ finalSearchData?: { topPanelSearchData?: {}; timeSearchData?: {}; }; showList?: string[]; showChart?: string[]; }