Files
admin-ui/src/utils/directive.ts

23 lines
760 B
TypeScript
Raw Normal View History

2025-11-20 09:10:35 +08:00
import type { App } from 'vue';
import { authDirective } from '/@/utils/authDirective';
import { wavesDirective, dragDirective } from '/@/utils/customDirective';
import { debounceDirective } from '/@/directives/debounce';
2025-11-20 09:10:35 +08:00
/**
* v-xxx
* @methods authDirective v-auth
* @methods wavesDirective v-waves
* @methods dragDirective v-drag
* @methods debounceDirective v-debounce
2025-11-20 09:10:35 +08:00
*/
export function directive(app: App) {
// 用户权限指令
authDirective(app);
// 按钮波浪指令
wavesDirective(app);
// 自定义拖动指令
dragDirective(app);
// 防抖指令
app.directive('debounce', debounceDirective);
2025-11-20 09:10:35 +08:00
}