UNPKG

element-plus

Version:

A Component Library for Vue 3

14 lines (13 loc) 449 B
import type { Ref } from 'vue'; import type { WatcherPropsData } from '.'; declare function useExpand<T>(watcherData: WatcherPropsData<T>): { updateExpandRows: () => void; toggleRowExpansion: (row: T, expanded?: boolean) => void; setExpandRowKeys: (rowKeys: string[]) => void; isRowExpanded: (row: T) => boolean; states: { expandRows: Ref<T[]>; defaultExpandAll: Ref<boolean>; }; }; export default useExpand;