import { TNodeReturnValue } from '../common'; import { TdBaseTableProps, TableExpandedRowParams, TableRowData, TdPrimaryTableProps, TdEnhancedTableProps, RowspanColspan, BaseTableCol, PrimaryTableInstanceFunctions, PrimaryTableCol, BaseTableInstanceFunctions } from './type'; export interface BaseTableProps extends TdBaseTableProps { renderExpandedRow?: (params: TableExpandedRowParams) => TNodeReturnValue; onLeafColumnsChange?: (columns: BaseTableColumns) => void; onShowElementChange?: (show: boolean) => void; thDraggable?: boolean; } export type PrimaryTableProps = TdPrimaryTableProps; export type EnhancedTableProps = TdEnhancedTableProps; export type TableProps = PrimaryTableProps; export type TableCol = PrimaryTableCol; export type TableInstanceFunctions = PrimaryTableInstanceFunctions & BaseTableInstanceFunctions; export type ThRowspanAndColspan = Map; export type BaseTableColumns = BaseTableCol[]; export interface ColumnStickyLeftAndRight { left: number[]; right: number[]; top: number[]; bottom?: number[]; } export interface TableColFixedClasses { left: string; right: string; lastLeft: string; firstRight: string; leftShadow: string; rightShadow: string; } export interface TableRowFixedClasses { top: string; bottom: string; firstBottom: string; withoutBorderBottom: string; } export interface FixedColumnInfo { left?: number; right?: number; top?: number; bottom?: number; parent?: FixedColumnInfo; children?: string[]; width?: number; height?: number; col?: BaseTableCol; index?: number; lastLeftFixedCol?: boolean; firstRightFixedCol?: boolean; } export type RowAndColFixedPosition = Map; export type TableTreeExpandType = 'expand-all' | 'fold-all' | 'user-reaction-change' | 'props-change'; export interface SimplePageInfo { current?: number; defaultCurrent?: number; pageSize?: number; defaultPageSize?: number; }