物业代码生成
This commit is contained in:
12
apps/web-antd/types/directive.d.ts
vendored
Normal file
12
apps/web-antd/types/directive.d.ts
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
import type { Directive } from 'vue';
|
||||
|
||||
declare module 'vue' {
|
||||
export interface ComponentCustomProperties {
|
||||
/**
|
||||
* 判断权限: v-access:code=""
|
||||
* 判断角色 v-access:role=""
|
||||
* 需要VueOfficial插件版本 >= 2.1.8
|
||||
*/
|
||||
vAccess: Directive<Element, string | string[], string, 'code' | 'role'>;
|
||||
}
|
||||
}
|
9
apps/web-antd/types/global-components.d.ts
vendored
Normal file
9
apps/web-antd/types/global-components.d.ts
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
export {};
|
||||
|
||||
/* prettier-ignore */
|
||||
declare module 'vue' {
|
||||
export interface GlobalComponents {
|
||||
AButton: typeof import('ant-design-vue/es/button')['default'];
|
||||
GhostButton: typeof import('#/components/global/button')['GhostButton']
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user