types: complete dirctives and v-role custom color (#3718)

* types: complete dirctives

* chore: v-auth custom color
This commit is contained in:
sea
2024-04-09 20:33:57 +08:00
committed by GitHub
parent ade6d4c22d
commit 890ff8f338
4 changed files with 23 additions and 4 deletions

11
types/directives.d.ts vendored Normal file
View File

@@ -0,0 +1,11 @@
import type { Directive } from 'vue';
import { RoleEnum } from '@/enums/roleEnum';
declare module 'vue' {
export interface ComponentCustomProperties {
vLoading: Directive<Element, boolean>;
vAuth: Directive<Element, string | string[] | RoleEnum[]>;
}
}
export {};