UNPKG

element-plus

Version:

A Component Library for Vue3.0

48 lines (42 loc) 1.17 kB
import type { Ref, VNode } from 'vue' export type ILoadingOptions = { parent?: ILoadingParentElement background?: string spinner?: boolean | string text?: string fullscreen?: boolean body?: boolean lock?: boolean customClass?: string visible?: boolean target?: string | HTMLElement } export type ILoadingInstance = { parent?: Ref<ILoadingParentElement> background?: Ref<string> spinner?: Ref<boolean | string> text?: Ref<string> fullscreen?: Ref<boolean> body?: Ref<boolean> lock?: Ref<boolean> customClass?: Ref<string> visible?: Ref<boolean> target?: Ref<string | HTMLElement> originalPosition?: Ref<string> originalOverflow?: Ref<string> setText: (text: string) => void close: () => void handleAfterLeave: () => void vm: VNode $el: HTMLElement } export type ILoadingGlobalConfig = { fullscreenLoading: ILoadingInstance } export type ILoadingCreateComponentParams = { options: ILoadingOptions globalLoadingOption: ILoadingGlobalConfig } export interface ILoadingParentElement extends HTMLElement { vLoadingAddClassList?: () => void }