element-plus
Version:
A Component Library for Vue 3
15 lines (14 loc) • 475 B
TypeScript
import type { Ref } from 'vue';
import type { WatcherPropsData } from '.';
declare function useCurrent<T>(watcherData: WatcherPropsData<T>): {
setCurrentRowKey: (key: string) => void;
restoreCurrentRowKey: () => void;
setCurrentRowByKey: (key: string) => void;
updateCurrentRow: (_currentRow: T) => void;
updateCurrentRowData: () => void;
states: {
_currentRowKey: Ref<string>;
currentRow: Ref<T>;
};
};
export default useCurrent;