VTable icon indicating copy to clipboard operation
VTable copied to clipboard

[Feature] 希望能增加展开树形结构全部节点或者特定层级的方法

Open huapeng222 opened this issue 1 year ago • 5 comments

What problem does this feature solve?

在某些场景下需要展开全部的树形节点,目前文档里只提供了展开某一个树节点的方法toggleHierarchyState,但该方法只能展开某一行的一个节点,希望能增加可以展开全部节点的方法

What does the proposed API look like?

增加类似toggleHierarchyAllState方法

huapeng222 avatar Dec 13 '24 08:12 huapeng222

https://visactor.io/vtable/option/ListTable#hierarchyExpandLevel 如果是初始化的时候 或者调用updateOption的话 可以用这个可以做到 @huapeng222

fangsmile avatar Dec 15 '24 09:12 fangsmile

https://visactor.io/vtable/option/ListTable#hierarchyExpandLevel 如果是初始化的时候 或者调用updateOption的话 可以用这个可以做到 @huapeng222

这个属性我知道,但只能在初始化时候用。 除此之外,还可以遍历表格源数据增加hierarchyState: "expand"来实现这个需求,但感觉这样处理对性能是浪费的

huapeng222 avatar Dec 16 '24 03:12 huapeng222

感谢你的反馈!我们已经收到你的问题,并将在后续进行处理。 如果有开发者对这个 issue 感兴趣,请在issue下方留言“认领该issue”,留言后开始你的创作提pr给我们! 欢迎大家参与开源共建!我们非常感激每一位贡献者,提交pr后我们将为参与共建的开发者准备一份礼品。 参与共建可参考:https://visactor.io/vtable/guide/Contribution_Guide 与官方开发者交流问题可以下载飞书app扫码加入飞书群: 飞书20241029-170312 再次感谢你的支持!

Thank you for your feedback! We have received your question and will deal with it later. If any developer is interested in this issue, please leave a message "claim this issue" below the issue. Welcome to participate in open source co-construction! We are very grateful to every contributor. After submitting the PR, we will prepare a gift for the developers who participated in the co-construction. For participation in co-construction, please refer to: https://visactor.io/vtable/guide/Contribution_Guide To communicate with official developers, you can download the Feishu app and scan the QR code to join the Feishu group! Thank you again for your support!

fangsmile avatar Dec 18 '24 07:12 fangsmile

我也觉得这是一个基本功能。我使用vue-vtable.文档说会自动运行updateOption,可重设options ref ,hierarchyExpandLevel 并不响应

Alia2006 avatar Apr 05 '25 04:04 Alia2006

手动运行updateOption也没用

Alia2006 avatar Apr 05 '25 04:04 Alia2006

开源之夏学生想要认领这个issue

Violet2314 avatar May 23 '25 13:05 Violet2314