2021-04-30 16:15:43 +08:00
|
|
|
|
import type { App } from 'vue';
|
2021-06-19 17:49:42 +08:00
|
|
|
|
import { authDirective } from '/@/utils/authDirective';
|
2021-06-24 18:02:13 +08:00
|
|
|
|
import { wavesDirective, dragDirective } from '/@/utils/customDirective';
|
2021-04-30 16:15:43 +08:00
|
|
|
|
|
2021-06-19 17:49:42 +08:00
|
|
|
|
/**
|
|
|
|
|
* 导出指令方法:v-xxx
|
|
|
|
|
* @methods authDirective 用户权限指令,用法:v-auth
|
|
|
|
|
* @methods wavesDirective 按钮波浪指令,用法:v-waves
|
2021-06-24 18:02:13 +08:00
|
|
|
|
* @methods dragDirective 自定义拖动指令,用法:v-drag
|
2021-06-19 17:49:42 +08:00
|
|
|
|
*/
|
2021-04-30 16:15:43 +08:00
|
|
|
|
export function directive(app: App) {
|
|
|
|
|
// 用户权限指令
|
|
|
|
|
authDirective(app);
|
|
|
|
|
// 按钮波浪指令
|
|
|
|
|
wavesDirective(app);
|
2021-06-24 18:02:13 +08:00
|
|
|
|
// 自定义拖动指令
|
|
|
|
|
dragDirective(app);
|
2021-04-30 16:15:43 +08:00
|
|
|
|
}
|