Skip to content

Commit 70f49a7

Browse files
committed
docs: update readme
1 parent 67e0a0f commit 70f49a7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@
3434
- forEachDeep 高性能的深度优先遍历函数, 支持continue、break,可定制id、children
3535
- forEachMap 高性能的深度优先遍历的Map函数, 支持continue、break,可定制id、children
3636
- searchTreeById 在树中找到 id 为某个值的节点,并返回上游的所有父级节点
37-
- buildTree 根据 id 与 parentId 从对象数组中构建对应的树
3837
- formatTree 高性能的数组转树函数
38+
- fuzzySearchTree 模糊搜索函数,返回包含搜索字符的节点及其祖先节点的树
3939

4040
- Object
4141

src/tree.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ export function flatTree(treeList: any[], options: IFieldOptions = defaultFieldO
348348
}
349349

350350
/**
351-
* 实现模糊搜索函数,返回包含搜索字符的节点及其祖先节点, 适用于树型组件的字符过滤功能
351+
* 模糊搜索函数,返回包含搜索字符的节点及其祖先节点, 适用于树型组件的字符过滤功能
352352
* @param {any[]} nodes
353353
* @param {string} query
354354
* @param {ISearchTreeOpts} options

0 commit comments

Comments
 (0)