Happy-Coding-Clans / vue-easytable

A powerful data table based on vuejs. You can use it as data grid、Microsoft Excel or Google sheets. It supports virtual scroll、cell edit etc.
https://happy-coding-clans.github.io/vue-easytable/
MIT License
3.63k stars 725 forks source link

[Bug Report] 开启虚拟列表后,滚动的时候,选择框会剧烈抖动 #526

Open sakurastone opened 1 year ago

sakurastone commented 1 year ago

选择要提交 issue 的库

vue-easytable

Issue 类型

Bug

Issue 标题

开启虚拟列表后,滚动的时候,选择框会剧烈抖动

仓库版本

v2.21.7

Vue 版本

2.6

浏览器

Chrome 107.0.5304.87

系统类型

MacOS

重现链接

https://codesandbox.io/s/9ydfrk

重现步骤

开启虚拟列表,先把表格滚到一半,选中一片区域,出现了选择框,再滚动的时候,选择框会剧烈抖动

期望的结果是什么?

避免或者减轻抖动的频率

实际的结果是什么?

剧烈的抖动

linxian1998 commented 7 months ago

我好像有类似的问题,应该是你的row-key-field-name 这个参数没有设置为唯一的列id,我一开始有,后来设置了之后就没有这个问题了