import type { MaybeRef } from '@vueuse/core'; export type LoadingOptionsResolved = { parent: LoadingParentElement; /** * @description background color of the mask */ background: MaybeRef; svg: MaybeRef; svgViewBox: MaybeRef; /** * @description class name of the custom spinner */ spinner: MaybeRef; /** * @description loading text that displays under the spinner */ text: MaybeRef; /** * @description same as the `fullscreen` modifier of `v-loading` */ fullscreen: boolean; /** * @description same as the `lock` modifier of `v-loading` */ lock: boolean; /** * @description custom class name for Loading */ customClass: MaybeRef; visible: boolean; target: HTMLElement; beforeClose?: () => boolean; closed?: () => void; }; export type LoadingOptions = Partial & { /** * @description the DOM node Loading needs to cover. Accepts a DOM object or a string. If it's a string, it will be passed to `document.querySelector` to get the corresponding DOM node */ target: HTMLElement | string; /** * @description same as the `body` modifier of `v-loading` */ body: boolean; }>; export interface LoadingParentElement extends HTMLElement { vLoadingAddClassList?: () => void; }