Appearance
KBE3D / KBCore / utils / findNodeAll
函数: findNodeAll()
findNodeAll<
T>(tree:any,func:TreeCallbackFn,config?:Partial<TreeMappingConfig>):T[]
找到多个符合条件的节点
类型参数
T
T = any
参数
tree
any
目标树结构
func
回调函数
config?
Partial<TreeMappingConfig> = {}
配置项
返回
T[]
符合条件的节点集合
备注
ts
DEFAULT_CONFIG: TreeMappingConfig = {
children: 'children',
}