签入版本
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
import { App } from 'vue';
|
||||
|
||||
import { perm,perms } from '@/directives/permission';
|
||||
import { scrollBar } from '@/directives/scrollBar';
|
||||
|
||||
/**
|
||||
* 注册全局自定义指令
|
||||
* @param app
|
||||
*/
|
||||
export function setupDirectives(app: App) {
|
||||
app.directive('perm', perm); // 权限控制指令 (是否包含其中某个权限)
|
||||
app.directive('perms', perms); // 权限控制指令 (是否包含所有权限)
|
||||
app.directive('scrollBar', scrollBar); // 滚动条
|
||||
}
|
||||
Reference in New Issue
Block a user