This commit is contained in:
dap
2026-04-08 10:34:35 +08:00
37 changed files with 1519 additions and 204 deletions

View File

@@ -2,11 +2,11 @@ import type { Arrayable, MaybeElementRef } from '@vueuse/core';
import type { Ref } from 'vue';
import { computed, effectScope, onUnmounted, ref, unref, watch } from 'vue';
import { computed, effectScope, ref, unref, watch } from 'vue';
import { isFunction } from '@vben/utils';
import { useElementHover } from '@vueuse/core';
import { tryOnScopeDispose, useElementHover } from '@vueuse/core';
interface HoverDelayOptions {
/** 鼠标进入延迟时间 */
@@ -151,7 +151,7 @@ export function useHoverToggle(
},
};
onUnmounted(() => {
tryOnScopeDispose(() => {
clearTimers();
// 停止监听器
stopWatcher();