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

@@ -6,7 +6,7 @@ import {
throttle
} from "@pureadmin/utils";
import { useEventListener } from "@vueuse/core";
import { Directive, type DirectiveBinding } from "vue";
import type { Directive, DirectiveBinding } from "vue";
/** 防抖v-optimize或v-optimize:debounce、节流v-optimize:throttle指令 */
export const optimize: Directive = {