Skip to content

树表格,滚动到表最底部,点击上面的展开,鼠标再滚动会回到顶部 #2876

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

Open
2 tasks done
gybgybg opened this issue Apr 18, 2025 · 1 comment
Open
2 tasks done
Labels
bug Something isn't working

Comments

@gybgybg
Copy link

gybgybg commented Apr 18, 2025

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

https://stackblitz.com/edit/vitejs-vite-44vxhaft?file=src%2FApp.vue

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

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

问题描述与截图:

Image

期望的结果:

No response

操作系统:

macos

浏览器版本:

最新 134

vue 版本:

3.5.13

vxe-pc-ui 版本:

4.5.9

vxe-table 版本:

4.13.5

是否使用当前最新版本?

  • 我确定已经更新到最新版本后依然存在该问题
@gybgybg gybgybg added the bug Something isn't working label Apr 18, 2025
@gybgybg
Copy link
Author

gybgybg commented Apr 19, 2025

找到了解决方案

handleToggleTreeExpand() {
      // 树节点展开或收起后,刷新表格滚动区域
      this.$nextTick(() => {
        if (this.$refs.tableRef) {
          this.$refs.tableRef.refreshScroll()
        }
      })
    }

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

1 participant