amis-rpc-design/node_modules/rc-table/es/hooks/useRowInfo.d.ts

13 lines
795 B
TypeScript
Raw Normal View History

2023-10-07 19:42:30 +08:00
/// <reference types="react" />
import type { TableContextProps } from '../context/TableContext';
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'> & {
columnsKey: React.Key[];
nestExpandable: boolean;
expanded: boolean;
hasNestChildren: boolean;
record: RecordType;
rowSupportExpand: boolean;
expandable: boolean;
rowProps: React.HTMLAttributes<any> & React.TdHTMLAttributes<any>;
};