import { ISummaryData } from '../table-summary'; interface IFields { toFixedNum: number | number[]; key: string; showKey?: string | string[]; value?: string | number | (string | number)[]; fn?: (num: string | number) => any; lastFn?: (num: string | number | (string | number)[]) => any; } export interface ISummaryConfig { type: 'subtotal' | 'total'; fields: (string | IFields)[]; title?: string; onClickHandle?: any; [prop: string]: any; } /** * @description 获取总结栏数据 * @param summaryConfig 总结栏配置 * @param pageData 当前表格数据 * @param columns 列配置 * @param hasRowSelection 是否有选择列 * @returns any[] */ declare function getSummaryData(summaryConfig: ISummaryConfig[] | undefined, pageData: any, columns: any, { hasRowSelection, hasExpandable, }: { hasRowSelection: boolean; hasExpandable: boolean; }): ISummaryData[]; export default getSummaryData;