current.d.ts 646 B

123456789101112131415161718
  1. import { WatcherPropsData } from "./index.js";
  2. import { DefaultRow } from "../table/defaults.js";
  3. import { Ref } from "vue";
  4. //#region ../../packages/components/table/src/store/current.d.ts
  5. declare function useCurrent<T extends DefaultRow>(watcherData: WatcherPropsData<T>): {
  6. setCurrentRowKey: (key: string) => void;
  7. restoreCurrentRowKey: () => void;
  8. setCurrentRowByKey: (key: string) => void;
  9. updateCurrentRow: (_currentRow: T) => void;
  10. updateCurrentRowData: () => void;
  11. states: {
  12. _currentRowKey: Ref<string | null, string | null>;
  13. currentRow: Ref<T | null, T | null>;
  14. };
  15. };
  16. //#endregion
  17. export { useCurrent as default };