Skip to content

开启虚拟滚动后,remove移除行数据表格滚动条高度不正确 #3149

@wyjgits

Description

@wyjgits

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

https://stackblitz.com/edit/vitejs-vite-mljlvskm?file=src%2Fviews%2FDemo1.vue

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

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

问题描述与截图:

demo中有三行数据,调用remove移除到只有一行数据时,滚动条高度有两行,可以继续滚动到空白

Image

期望的结果:

滚动条高度与实际数据高度一致,应该只有一行数据的高度,没有滚动条

操作系统:

window11

浏览器版本:

edge 143.0.3650.66

vue 版本:

3.5.13

vxe-pc-ui 版本:

vxe-table 版本:

4.17.27

是否使用当前最新版本?

  • 我确定已经更新到最新版本后依然存在该问题

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingfixhas been fix

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions