chore: v-access的类型校验
This commit is contained in:
parent
9e365a336d
commit
3be5f90e62
5
apps/web-antd/types/directive.d.ts
vendored
5
apps/web-antd/types/directive.d.ts
vendored
@ -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'>;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user