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

[tree] 开启虚拟滚动后,树节点不在滚动范围内已加载的,无法使用 scrollTo 定位到该节点 #3469

Open
wynn719 opened this issue Jan 16, 2025 · 1 comment

Comments

@wynn719
Copy link

wynn719 commented Jan 16, 2025

tdesign-vue 版本

1.10.9

重现链接

No response

重现步骤

Image

期望结果

调用 treeRef.value.scrollTo({ key: 'xxx' }) 能够滚动到指定节点

实际结果

当节点在当前滚动范围内(大于 threshold 的值)不可见时,无法滚动到指定节点

框架版本

Vue(2.7)

浏览器版本

No response

系统版本

No response

Node版本

No response

补充说明

看了下源码,这里的底层实现依赖 dom 的 scroll,应该是本身就有这个问题

Image
Copy link
Contributor

👋 @wynn719,感谢给 TDesign 提出了 issue。
请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant