UNPKG

naive-ui

Version:

A Vue 3 Component Library. Fairly Complete, Theme Customizable, Uses TypeScript, Fast

11 lines (10 loc) 686 B
import type { TreeMate } from 'treemate'; import type { DataTableSetupProps, Expandable, InternalRowData, RowKey } from './interface'; import { type Ref } from 'vue'; export declare function useExpand(props: DataTableSetupProps, treeMateRef: Ref<TreeMate<InternalRowData, InternalRowData, InternalRowData>>): { stickyExpandedRowsRef: Ref<boolean, boolean>; mergedExpandedRowKeysRef: import("vue").ComputedRef<import("treemate").Key[]>; renderExpandRef: import("vue").ComputedRef<import("./interface").RenderExpand<any> | undefined>; expandableRef: import("vue").ComputedRef<Expandable<any> | undefined>; doUpdateExpandedRowKeys: (expandedKeys: RowKey[]) => void; };