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

feat(tree): 1. 添加自定义数据过滤判断方法 2. 添加搜索完成自动展开结果选项 3. 添加搜索完成自动选中结果选项 4. 树… #1132

Merged
merged 1 commit into from
Aug 30, 2021

Conversation

noahlann
Copy link
Contributor

BasicTree

  1. 添加自定义数据过滤判断方法
  2. 添加搜索完成自动展开结果选项
  3. 添加搜索完成自动选中结果选项
  4. 树节点数据变化时强制搜索一次 (目的是强制同步一次 searchData 避免展示错误)

对于第4点,遇到的情况如下描述

树节点数据为

1
  1-1
2
  2-1
  3-1
3
  3-1
  3-2

当搜索 3-1 时,展现数据如下:

2
  3-1
3
  3-1

当删除 2节点下的 3-1 时,默认行为下,依然会显示 2 -> 3-1, 强制搜索一次后,展示结果正确。

@anncwb anncwb merged commit e00578c into vbenjs:main Aug 30, 2021
@noahlann noahlann deleted the feat(tree) branch August 30, 2021 07:15
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

Successfully merging this pull request may close these issues.

None yet

2 participants