yangyin
2024-08-30 4a3184a03f86dde138301f2d89ad180c0059f24d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import type { App } from 'vue';
import { authDirective } from '/@/directive/authDirective';
import { dragDirective, elementResizeDirective, wavesDirective } from '/@/directive/customDirective';
import { inputLimit } from '/@/directive/inputLimit';
 
/**
 * 导出指令方法:v-xxx
 * @methods authDirective 用户权限指令,用法:v-auth
 * @methods wavesDirective 按钮波浪指令,用法:v-waves
 * @methods dragDirective 自定义拖动指令,用法:v-drag
 */
export function directive(app: App) {
    // 用户权限指令
    authDirective(app);
    // 按钮波浪指令
    wavesDirective(app);
    // 自定义拖动指令
    dragDirective(app);
    // 元素变化监听指令
    elementResizeDirective(app);
    // 输入限制指令
    inputLimit(app);
}