directive.d.ts 501 B

12345678910111213
  1. import type { Directive, UnwrapRef } from 'vue';
  2. import type { LoadingOptions } from './types';
  3. import type { LoadingInstance } from './loading';
  4. declare const INSTANCE_KEY: unique symbol;
  5. export type LoadingBinding = boolean | UnwrapRef<LoadingOptions>;
  6. export interface ElementLoading extends HTMLElement {
  7. [INSTANCE_KEY]?: {
  8. instance: LoadingInstance;
  9. options: LoadingOptions;
  10. };
  11. }
  12. declare const vLoading: Directive<ElementLoading, LoadingBinding>;
  13. export default vLoading;