@vuesax-alpha/nightly
Version:
A Component Library for Vue 3
13 lines (12 loc) • 464 B
TypeScript
import type { LoadingHandle, LoadingParams } from './loading';
import type { Directive, UnwrapRef } from 'vue';
declare const INSTANCE_KEY: unique symbol;
export declare type LoadingBinding = boolean | UnwrapRef<LoadingParams>;
export interface ElementLoading extends HTMLElement {
[INSTANCE_KEY]?: {
instance: LoadingHandle;
options: LoadingParams;
};
}
export declare const vLoading: Directive<ElementLoading, LoadingBinding>;
export {};