1dd747c540e1c4e7368b7e3b9e3523c3a1e70b3388daf47414b853d91afdcccec03af3cb498145ab5e51c99b3517357ea21cd02be0f3d90b1a8a8b8da8e552 1.5 KB

123456789101112131415161718192021222324252627282930
  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 | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
  19. [key: string]: any;
  20. }> | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
  21. [key: string]: any;
  22. }>[]>;
  23. fullscreen: import("vue").Ref<boolean>;
  24. lock: import("vue").Ref<boolean>;
  25. customClass: import("vue").Ref<string>;
  26. target: import("vue").Ref<HTMLElement>;
  27. beforeClose?: import("vue").Ref<(() => boolean) | undefined> | undefined;
  28. closed?: import("vue").Ref<(() => void) | undefined> | undefined;
  29. };
  30. export type LoadingInstance = ReturnType<typeof createLoadingComponent>;