Skip to content

Directory tree doesn't have scrollTo method. #6064

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

Closed
1 task
oushu1tanqiang1 opened this issue Oct 30, 2022 · 4 comments
Closed
1 task

Directory tree doesn't have scrollTo method. #6064

oushu1tanqiang1 opened this issue Oct 30, 2022 · 4 comments
Labels

Comments

@oushu1tanqiang1
Copy link
Contributor

  • I have searched the issues of this repository and believe that this is not a duplicate.

What problem does this feature solve?

Directory tree have scrollTo method.

What does the proposed API look like?

Directory tree expose treeRef to let developer to use.

@oushu1tanqiang1
Copy link
Contributor Author

#5235

在上面这个 issue 里有人提到 tree 没有 scroll to.

开发者在 22-05-21 的一次 commit 中有修复 4439e0f

但是 Directory Tree 还是没有。。

Directory Tree 基于 Tree 封装,setup 中没有 expose treeRef

a-tree expose
图片

a-directory-tree expose
图片

@oushu1tanqiang1
Copy link
Contributor Author

此外,原 a-tree 最开始的修复版本,是 expose scrollTo 方法,与官方 API 文档相对应,后面改成了 expose 整个 vc-tree ref 对象,文档可能也需要改一下?

方便的话,我可以提 PR~

@tangjinzhou
Copy link
Member

加个 scrollTo 吧,整个ref暴露出去意义不大

Copy link

github-actions bot commented Nov 2, 2023

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 2, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants