es-grid-template
Version:
es-grid-template
32 lines (31 loc) • 1.28 kB
TypeScript
import type { ColumnDef, ColumnPinningState, ExpandedState, VisibilityState } from '@tanstack/react-table';
import type { ColumnsTable, Sorter, TableProps } from '../../grid-component/type';
import type { Dispatch, Key, SetStateAction } from 'react';
import React from 'react';
type Props<T> = Omit<TableProps<T>, 'columns'> & {
id: string;
rowKey: string;
prefix: string;
columns: ColumnDef<T>[];
propsColumns: ColumnsTable<T>;
setColumns: Dispatch<SetStateAction<ColumnsTable<T>>>;
columnHidden: VisibilityState;
expanded: ExpandedState;
setExpanded: any;
columnPinning: ColumnPinningState;
originData: T[];
mergedFilterKeys: any;
setMergedFilterKeys: any;
isFullScreen: boolean;
setIsFullScreen: Dispatch<SetStateAction<boolean>>;
triggerFilter: Dispatch<SetStateAction<any>>;
triggerSorter: Dispatch<SetStateAction<Sorter[]>>;
setIsExpandClick: Dispatch<SetStateAction<boolean>>;
onContextMenu?: (data: T) => (event: any) => void;
triggerChangeColumns?: (args: any, keys: any, type: string) => void;
windowSize: any;
isDataTree: boolean;
mergedSelectedKeys: Key[];
};
declare const Grid: <RecordType extends object>(props: Props<RecordType>) => React.JSX.Element;
export default Grid;