loading.d.ts 1.3 KB

1234567891011121314151617181920212223242526
  1. import type { AppContext } from 'vue';
  2. import type { LoadingOptionsResolved } from './types';
  3. export declare function createLoadingComponent(options: LoadingOptionsResolved, appContext: AppContext | null): {
  4. setText: (text: string) => void;
  5. removeElLoadingChild: () => void;
  6. close: () => void;
  7. handleAfterLeave: () => void;
  8. vm: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
  9. $el: HTMLElement;
  10. originalPosition: import("vue").Ref<string>;
  11. originalOverflow: import("vue").Ref<string>;
  12. visible: import("vue").Ref<boolean>;
  13. parent: import("vue").Ref<import("./types").LoadingParentElement>;
  14. background: import("vue").Ref<string>;
  15. svg: import("vue").Ref<string>;
  16. svgViewBox: import("vue").Ref<string>;
  17. spinner: import("vue").Ref<string | boolean>;
  18. text: import("vue").Ref<string>;
  19. fullscreen: import("vue").Ref<boolean>;
  20. lock: import("vue").Ref<boolean>;
  21. customClass: import("vue").Ref<string>;
  22. target: import("vue").Ref<HTMLElement>;
  23. beforeClose?: import("vue").Ref<(() => boolean) | undefined> | undefined;
  24. closed?: import("vue").Ref<(() => void) | undefined> | undefined;
  25. };
  26. export type LoadingInstance = ReturnType<typeof createLoadingComponent>;