Appearance
KBE3D / KBCore / utils / treeToList
treeToList<T>(tree: any, config?: Partial<TreeMappingConfig>): T[]
T
tree
any
config?
Partial
TreeMappingConfig
树结构数据转成集合
T = any
目标树结构
Partial<TreeMappingConfig> = {}
{}
配置项
T[]
集合
DEFAULT_CONFIG: TreeMappingConfig = { children: 'children', }