LoaderCommon.ts 268 B

123456789
  1. import type { Ref } from "vue";
  2. export type LoaderLoadType = 'loading' | 'finished' | 'nomore' | 'error';
  3. export interface ILoaderCommon<P> {
  4. loadError: Ref<string>;
  5. loadStatus: Ref<LoaderLoadType>;
  6. loadData: (params?: P, refresh?: boolean) => Promise<void>;
  7. }