element-plus
Version:
A Component Library for Vue 3
24 lines (23 loc) • 735 B
TypeScript
import type { MaybeRef } from '@vueuse/core';
export declare type LoadingOptionsResolved = {
parent: LoadingParentElement;
background: MaybeRef<string>;
svg: MaybeRef<string>;
svgViewBox: MaybeRef<string>;
spinner: MaybeRef<boolean | string>;
text: MaybeRef<string>;
fullscreen: boolean;
lock: boolean;
customClass: MaybeRef<string>;
visible: boolean;
target: HTMLElement;
beforeClose?: () => boolean;
closed?: () => void;
};
export declare type LoadingOptions = Partial<Omit<LoadingOptionsResolved, 'parent' | 'target'> & {
target: HTMLElement | string;
body: boolean;
}>;
export interface LoadingParentElement extends HTMLElement {
vLoadingAddClassList?: () => void;
}