- Preparing search index...
- The search index is not available
yatter
- makeTree(nodes: TreeNode[], option?: {
children?: string | number;
id?: string | number;
pid?: string | number;
}): TreeNode[]
-
Parameters
-
nodes: TreeNode[]
-
option: {
children?: string | number;
id?: string | number;
pid?: string | number;
} = {}
-
Optional
children?: string | number
-
Optional
id?: string | number
-
Optional
pid?: string | number
Returns TreeNode[]
具有层次属性的数组,转化为树结构
Returns