feat: 添加长按指令及使用示例,该长按指令支持自定义时长的持续回调 (#620)

This commit is contained in:
xiaoming
2023-06-23 11:17:39 +08:00
committed by GitHub
parent 5f71e0aad7
commit b8200125dc
8 changed files with 109 additions and 6 deletions

View File

@@ -1,5 +1,5 @@
import { hasAuth } from "@/router/utils";
import { Directive, type DirectiveBinding } from "vue";
import type { Directive, DirectiveBinding } from "vue";
export const auth: Directive = {
mounted(el: HTMLElement, binding: DirectiveBinding) {