1 | import type { ExpandableConfig, ExpandableType, GetRowKey, Key, RenderExpandIcon, TriggerEventHandler } from '../interface';
|
2 | import type { TableProps } from '../Table';
|
3 | export default function useExpand<RecordType>(props: TableProps<RecordType>, mergedData: readonly RecordType[], getRowKey: GetRowKey<RecordType>): [
|
4 | expandableConfig: ExpandableConfig<RecordType>,
|
5 | expandableType: ExpandableType,
|
6 | expandedKeys: Set<Key>,
|
7 | expandIcon: RenderExpandIcon<RecordType>,
|
8 | childrenColumnName: string,
|
9 | onTriggerExpand: TriggerEventHandler<RecordType>
|
10 | ];
|