chore: v-access的类型校验

This commit is contained in:
dap 2024-10-27 20:52:23 +08:00
parent 9e365a336d
commit 3be5f90e62

View File

@ -5,9 +5,8 @@ declare module 'vue' {
/**
* 判断权限: v-access:code=""
* v-access:role=""
* VueOfficial插件暂时不支持判断modifer/arg
* @see https://github.com/vuejs/language-tools/issues/4810
* VueOfficial插件版本 >= 2.1.8
*/
vAccess: Directive<Element, string | string[]>;
vAccess: Directive<Element, string | string[], string, 'code' | 'role'>;
}
}