UNPKG

795 BTypeScriptView Raw
1/// <reference types="react" />
2import type { TableContextProps } from '../context/TableContext';
3export default function useRowInfo<RecordType>(record: RecordType, rowKey: React.Key, recordIndex: number, indent: number): Pick<TableContextProps, 'prefixCls' | 'fixedInfoList' | 'flattenColumns' | 'expandableType' | 'expandRowByClick' | 'onTriggerExpand' | 'rowClassName' | 'expandedRowClassName' | 'indentSize' | 'expandIcon' | 'expandedRowRender' | 'expandIconColumnIndex' | 'expandedKeys' | 'childrenColumnName' | 'onRow'> & {
4 columnsKey: React.Key[];
5 nestExpandable: boolean;
6 expanded: boolean;
7 hasNestChildren: boolean;
8 record: RecordType;
9 rowSupportExpand: boolean;
10 expandable: boolean;
11 rowProps: React.HTMLAttributes<any> & React.TdHTMLAttributes<any>;
12};