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

树组件使用自定义模版,无法实现高亮搜索结果。 #1601

Closed
vellengs opened this issue Jun 4, 2018 · 6 comments
Closed

树组件使用自定义模版,无法实现高亮搜索结果。 #1601

vellengs opened this issue Jun 4, 2018 · 6 comments

Comments

@vellengs
Copy link

vellengs commented Jun 4, 2018

What problem does this feature solve?

树组件使用自定义模版,能实现高亮搜索结果。

What does the proposed API look like?

提供 matchValue 到模版上下文。

@simplejason
Copy link
Member

你可以使用nzOnSearchNode事件获取匹配的节点,配合input组件自行实现自定义高亮(nzOnSearchNode emit事件做了简单修改,空字符输入也会emit回来,可以追踪这个PR #1602)

@vellengs
Copy link
Author

vellengs commented Jun 5, 2018

可否在demo 演示示例增加这个示例效果,我想大多数人还是这个示例的,毕竟不想自定义了,马上丢失了这个功能效果。

@crane168
Copy link

crane168 commented Apr 3, 2019

我也遇到了这个问题,大家是怎么解决的呢,就是自定义树节点模板,搜索时候不能高亮

@crane168
Copy link

crane168 commented Apr 8, 2019

可否在demo 演示示例增加这个示例效果,我想大多数人还是这个示例的,毕竟不想自定义了,马上丢失了这个功能效果。

你这个问题解决了吗

@s641135196
Copy link

我用了自定义的, 不可以高亮显示了。

@s641135196
Copy link

可否在demo 演示示例增加这个示例效果,我想大多数人还是这个示例的,毕竟不想自定义了,马上丢失了这个功能效果。

你这个问题解决了吗

hsuanxyz pushed a commit to hsuanxyz/ng-zorro-antd that referenced this issue Aug 5, 2020
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

4 participants