index.ts 730 B

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