UNPKG

tdesign-react

Version:
38 lines (37 loc) 1.72 kB
import React, { MutableRefObject } from 'react'; import { SkipSpansValue } from './hooks/useRowspanAndColspan'; import type { TScroll } from '../common'; import type { RowMountedParams, VirtualScrollConfig } from '../hooks/useVirtualScroll'; import type { PaginationProps } from '../pagination'; import type { RowAndColFixedPosition } from './interface'; import type { TableRowData, TdBaseTableProps } from './type'; export type TrCommonProps = Pick<TdBaseTableProps, TrPropsKeys>; export declare const TABLE_PROPS: readonly ["rowKey", "rowClassName", "columns", "fixedRows", "footData", "rowAttributes", "rowspanAndColspan", "scroll", "cellEmptyContent", "onCellClick", "onRowClick", "onRowDblclick", "onRowMouseover", "onRowMousedown", "onRowMouseenter", "onRowMouseleave", "onRowMouseup"]; export type TrPropsKeys = (typeof TABLE_PROPS)[number]; export interface TrProps extends TrCommonProps { rowKey: string; row?: TableRowData; rowIndex?: number; ellipsisOverlayClassName: string; classPrefix: string; dataLength?: number; rowAndColFixedPosition?: RowAndColFixedPosition; skipSpansMap?: Map<string, SkipSpansValue>; scrollType?: string; isVirtual?: boolean; rowHeight?: number; trs?: Map<number, object>; bufferSize?: number; scroll?: TScroll; tableRef?: MutableRefObject<HTMLDivElement>; tableContentRef?: MutableRefObject<HTMLDivElement>; pagination?: PaginationProps; virtualConfig?: VirtualScrollConfig; onRowMounted?: (params: RowMountedParams) => void; } export declare const ROW_LISTENERS: string[]; declare function TR(props: TrProps): React.JSX.Element; declare namespace TR { var displayName: string; } export default TR;