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 组件过滤时隐藏无关节点 #2764

Closed
duyuntao opened this issue Apr 11, 2022 · 4 comments
Closed

tree 组件过滤时隐藏无关节点 #2764

duyuntao opened this issue Apr 11, 2022 · 4 comments
Labels
feature request New feature or request

Comments

@duyuntao
Copy link

This function solves the problem (这个功能解决的问题)

首先感谢naiveui的虚拟树功能,我项目中tree有大量的节点。
在搜索过程中,被命中的节点有下划线效果,但是我需要在众多的节点中寻找被命中的节点,这使得用户体验不太友好,我希望可以隐藏不被命中的节点,只显示被命中的节点和他的父节点以及父节点的父节点,直到根节点。en..我想我表达清楚了。当然这个功能不能影响虚拟树本身的功能,包括拖拽。

Expected API (期望的 API)

filterDisplayMode 属性. 一个String枚举或者Boolean ,默认为下划线选中效果(就现在的展示效果),另一个为只展示命中节点效果

@github-actions github-actions bot added the feature request New feature or request label Apr 11, 2022
@07akioni
Copy link
Collaborator

会做

@duyuntao
Copy link
Author

会做
大概什么时候呢

@07akioni
Copy link
Collaborator

会做
大概什么时候呢

已经上了,看 changelog

@ddkwork
Copy link

ddkwork commented Oct 20, 2023

会做
大概什么时候呢

已经上了,看 changelog

大佬你好,表格和树形表格可否增加一个全局搜索的开关,类似tree这个的搜索,小白菜初学乍道啊

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

No branches or pull requests

3 participants