Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

动态行高虚拟滚动,左侧单元格高度与右侧单元格高度不一致会导致单元格渲染不一致 #2766

Open
2 tasks done
this-me0 opened this issue Feb 10, 2025 · 3 comments
Labels
bug Something isn't working

Comments

@this-me0
Copy link

可复现的链接(必须为公开链接,仅包含能复现问题的示例代码):

https://stackblitz.com/edit/vitejs-vite-ec5mbere?file=package.json,src%2Fmain.js,src%2FApp.vue&terminal=dev

是否已准备好复现链接与示例代码?

  • 我确定已准备好以上复现链接

问题描述与截图:

首次进入如果在左侧快速往下滑是没有问题的,因为单元格的高度是左侧的内容来撑起来的。但是如果从最右边,或者是从内容比较少的单元格开始向下滑动会导致单元格撑不起来

期望的结果:

左侧和右侧滑动单元格高度保持一致

操作系统:

window10

浏览器版本:

谷歌131.0.6778.266

vue 版本:

vue2和vue3均存在此问题

vxe-pc-ui 版本:

1

vxe-table 版本:

4.10.6 和 3.12.10

是否使用当前最新版本?

  • 我确定已经更新到最新版本后依然存在该问题
@this-me0 this-me0 added the bug Something isn't working label Feb 10, 2025
@xlz26296
Copy link
Contributor

要去掉这个特性建议可以关闭虚拟滚动,虚拟滚动的自适应行高就是滑动到可视区才会撑高,不滑动到可视区是没有高度的

@this-me0
Copy link
Author

@xlz26296 换逻辑了吗,前几个版本我记得是没问题的

@xlz26296
Copy link
Contributor

你可以关闭横向虚拟滚动就不会出现未加载单元格高度的变化

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants