| | |
| | | import type { App } from 'vue'; |
| | | import { authDirective } from '/@/utils/authDirective'; |
| | | import { wavesDirective, dragDirective } from '/@/utils/customDirective'; |
| | | import { preventClick } from '/@/utils/throttle'; |
| | | |
| | | /** |
| | | * 导出指令方法:v-xxx |
| | |
| | | * @methods dragDirective 自定义拖动指令,用法:v-drag |
| | | */ |
| | | export function directive(app: App) { |
| | | // 用户权限指令 |
| | | authDirective(app); |
| | | // 按钮波浪指令 |
| | | wavesDirective(app); |
| | | // 自定义拖动指令 |
| | | dragDirective(app); |
| | | // 用户权限指令 |
| | | authDirective(app); |
| | | // 按钮波浪指令 |
| | | wavesDirective(app); |
| | | // 自定义拖动指令 |
| | | dragDirective(app); |
| | | |
| | | preventClick(app); |
| | | } |