UNPKG

es-grid-template

Version:

es-grid-template

23 lines (22 loc) 813 B
import type { Dispatch, SetStateAction } from 'react'; import React from 'react'; import type { Table } from '@tanstack/react-table'; import type { TableProps } from './type'; type TableContainerProps<T> = Omit<TableProps<T>, 'columns'> & { table: Table<T>; prefix: string; id: string; rowKey: any; originData: T[]; setIsSelectionChange: Dispatch<SetStateAction<{ isChange: boolean; type: string; rowData: T; }>>; setSorterChange: Dispatch<SetStateAction<boolean>>; setFilterChange: Dispatch<SetStateAction<boolean>>; onContextMenu?: (data: T) => (event: any) => void; tableHeight?: number; }; declare const TableContainer: <RecordType extends object>(props: TableContainerProps<RecordType>) => React.JSX.Element; export default TableContainer;