UNPKG

@schema-render/search-table-react

Version:
28 lines (27 loc) 872 B
import type { IObjectAny } from '@schema-render/core-react'; import type { ReactNode } from 'react'; import type { IColumnType } from '../../typings/table.d'; export interface ICreateTableSummaryParams { /** 平铺的列数据 */ flattenedColumns: IColumnType[]; /** 「合计」数据 */ summaryData: IObjectAny; /** 「合计」文案 */ summaryText?: ReactNode; /** * 表格是否存在 checkbox 选择框,存在会给「合计」索引自动 +1 */ hasRowSelection?: boolean; /** * 是否存在序号栏 */ hasRowNumber?: boolean; } /** * 获取平铺的 columns */ export declare function getFlattenedColumns(columns?: IColumnType[]): IColumnType[]; /** * 创建 antd table 总结栏 */ export declare function createTableSummary(p: ICreateTableSummaryParams): import("react/jsx-runtime").JSX.Element;