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,7 +1,7 @@
import { message } from "@/utils/message";
import { useEventListener } from "@vueuse/core";
import { copyTextToClipboard } from "@pureadmin/utils";
import { Directive, type DirectiveBinding } from "vue";
import type { Directive, DirectiveBinding } from "vue";
interface CopyEl extends HTMLElement {
copyValue: string;