mirror of
https://github.com/pure-admin/vue-pure-admin.git
synced 2025-12-09 14:40:27 +08:00
types: complete dirctives and v-auth custom color
This commit is contained in:
13
types/directives.d.ts
vendored
Normal file
13
types/directives.d.ts
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
import type { Directive } from "vue";
|
||||
import type { CopyEl } from "../src/directives/copy/index";
|
||||
|
||||
declare module "vue" {
|
||||
export interface ComponentCustomProperties {
|
||||
vLoading: Directive<Element, boolean>;
|
||||
vAuth: Directive<HTMLElement, string | Array<string>>;
|
||||
vCopy: Directive<CopyEl, string>;
|
||||
vLongpress: Directive<HTMLElement, Function>;
|
||||
}
|
||||
}
|
||||
|
||||
export {};
|
||||
Reference in New Issue
Block a user