a7f9b08cda15e9355e24e06edfdf1f12bdcaf57e1072065084d48550e7d6b1cddb155fdc682cb7b3b1ac67fe8f551964b761b71da5210ea481d9cf470a170a 561 B

123456789101112131415
  1. import type { Ref } from 'vue';
  2. import type { DefaultRow } from '../table/defaults';
  3. import type { WatcherPropsData } from '.';
  4. declare function useCurrent<T extends DefaultRow>(watcherData: WatcherPropsData<T>): {
  5. setCurrentRowKey: (key: string) => void;
  6. restoreCurrentRowKey: () => void;
  7. setCurrentRowByKey: (key: string) => void;
  8. updateCurrentRow: (_currentRow: T) => void;
  9. updateCurrentRowData: () => void;
  10. states: {
  11. _currentRowKey: Ref<string | null>;
  12. currentRow: Ref<T | null>;
  13. };
  14. };
  15. export default useCurrent;