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 键盘事件对象 */