UNPKG

element-plus

Version:

A Component Library for Vue 3

14 lines (13 loc) 501 B
import type { Directive, UnwrapRef } from 'vue'; import type { LoadingOptions } from './types'; import type { LoadingInstance } from './loading'; declare const INSTANCE_KEY: unique symbol; export type LoadingBinding = boolean | UnwrapRef<LoadingOptions>; export interface ElementLoading extends HTMLElement { [INSTANCE_KEY]?: { instance: LoadingInstance; options: LoadingOptions; }; } declare const vLoading: Directive<ElementLoading, LoadingBinding>; export default vLoading;