useRowInfo.d.ts 795 B

123456789101112
  1. /// <reference types="react" />
  2. import type { TableContextProps } from '../context/TableContext';
  3. export 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. };