From 20b9ad37eded7a1d3eba99a1d09316662b29cd43 Mon Sep 17 00:00:00 2001 From: lanyuanxiaoyao Date: Thu, 12 Dec 2024 21:58:32 +0800 Subject: [PATCH] =?UTF-8?q?=E9=BC=A0=E6=A0=87=E4=B8=8D=E5=93=8D=E5=BA=94?= =?UTF-8?q?=E9=A6=96=E5=B0=BE=E9=A1=B9=E5=AF=B9=E9=BD=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/VirtualList.vue | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/components/VirtualList.vue b/src/components/VirtualList.vue index ffb339b..0934acc 100644 --- a/src/components/VirtualList.vue +++ b/src/components/VirtualList.vue @@ -179,7 +179,6 @@ function handleMouseEnter(index: number): void { if (!isKeyboardNavigating.value) { selectedIndex.value = index emit('select', { ...props.data[index], index }) - ensureSelectedItemVisible() } } @@ -193,7 +192,7 @@ const lastReachBoundaryTime = ref<{ top: number; bottom: number }>({ }) /** - * 处理��盘事件 + * 处理键盘事件 * 实现键盘导航、边界循环和项目选择功能 * @param e 键盘事件对象 */