ivue-material-plus
Version:
A high quality UI components Library with Vue.js
27 lines (26 loc) • 1.34 kB
TypeScript
import type { LoadingOptionsResolved } from './types/loading';
export declare function createLoadingComponent(options: LoadingOptionsResolved): {
setText: (text: string) => void;
close: () => void;
removeLoadingChild: () => void;
handleAfterLeave: () => void;
vm: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>;
$el: HTMLElement;
originalPosition: import("vue").Ref<string>;
originalOverflow: import("vue").Ref<string>;
visible: import("vue").Ref<boolean>;
parent: import("vue").Ref<import("./types/loading").LoadingParentElement>;
background: import("vue").Ref<string>;
iconClass?: import("vue").Ref<string>;
iconText?: import("vue").Ref<string>;
text: import("vue").Ref<string>;
fullscreen: import("vue").Ref<boolean>;
lock: import("vue").Ref<boolean>;
customClass: import("vue").Ref<string>;
target: import("vue").Ref<HTMLElement>;
loadingSpinner: import("vue").Ref<() => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
[key: string]: any;
}>>;
beforeClose?: import("vue").Ref<() => boolean>;
};
export declare type LoadingInstance = ReturnType<typeof createLoadingComponent>;