x-extends / vxe-table

Vxe table 的表格组件
https://vxetable.cn
MIT License
7.52k stars 1.04k forks source link

vxe-table, virtual scroll tree table seq error #1573

Open EstebanFuentealba opened 2 years ago

EstebanFuentealba commented 2 years ago

可复现的链接:

https://codesandbox.io/s/vxe-table-4-x-vue-3-0-wen-ti-yan-shi-forked-lfr8l?file=/src/views/Demo1.vue

问题描述与截图:

I have a virtual scrolling tree table, it renders fine until I navigate through the children.

Bug

https://giphy.com/gifs/cLzp3igQEHSuBqEqAQ

期望的结果:

the numbering sequence is correct

操作系统:

MacOS M1

浏览器版本:

Chrome/95.0.4638.69

vue 版本:

3.1.1

vxe-table 版本:

4.0.21

xe-bot[bot] commented 2 years ago

机器人助手:

EstebanFuentealba commented 2 years ago

I think the error may be here, the var scrollYLoad https://github.com/x-extends/vxe-table/blob/3397c6d62f4f0388b70f9485bb52ff84aa394bec/packages/table/src/body.ts#L390-L395

xuliangzhan commented 2 years ago

fix v4.1.9+. https://codesandbox.io/s/vxe-table-4-x-vue-3-0-wen-ti-yan-shi-forked-gr7f3