• 查找所有符合条件的节点

    Type Parameters

    • T = any

    Parameters

    • tree: any

      树形数据

    • func: Fn<any>

      查找节点的函数

    • config: Partial<TreeHelperConfig> = {}

      树形的配置项

    Returns T[]

    Example

    const tree = [{value: 1, id: 1, children: [{value: 2, pid: 1, id: 2}]}]
    const nodes = findNodeAll(tree, (node) => {
    return node.value
    })

Generated using TypeDoc