UNPKG

element-plus

Version:

A Component Library for Vue 3

16 lines (15 loc) 561 B
import type { Ref } from 'vue'; import type { DefaultRow } from '../table/defaults'; import type { WatcherPropsData } from '.'; declare function useCurrent<T extends DefaultRow>(watcherData: WatcherPropsData<T>): { setCurrentRowKey: (key: string) => void; restoreCurrentRowKey: () => void; setCurrentRowByKey: (key: string) => void; updateCurrentRow: (_currentRow: T) => void; updateCurrentRowData: () => void; states: { _currentRowKey: Ref<string | null>; currentRow: Ref<T | null>; }; }; export default useCurrent;