directive.ts 571 B

123456789101112131415161718
  1. import type { App } from 'vue';
  2. import { authDirective } from '/@/utils/authDirective';
  3. import { wavesDirective, dragDirective } from '/@/utils/customDirective';
  4. /**
  5. * 导出指令方法:v-xxx
  6. * @methods authDirective 用户权限指令,用法:v-auth
  7. * @methods wavesDirective 按钮波浪指令,用法:v-waves
  8. * @methods dragDirective 自定义拖动指令,用法:v-drag
  9. */
  10. export function directive(app: App) {
  11. // 用户权限指令
  12. authDirective(app);
  13. // 按钮波浪指令
  14. wavesDirective(app);
  15. // 自定义拖动指令
  16. dragDirective(app);
  17. }