vite-uni-dev-tool
Version:
vite-uni-dev-tool, debug, uni-app, 一处编写,到处调试
10 lines • 593 B
TypeScript
/**
* 将树结构扁平化并添加层级及闭合层级信息(包含闭合节点)
* 这个函数会为每个节点添加开始和结束标记,形成类似括号匹配的结构
* @param tree - 生成的树结构
* @param level - 当前层级,默认为0
* @param parentUid - 父节点UID,默认为undefined
* @returns 扁平化的节点数组(包含闭合节点)
*/
export declare function flattenTreeWithEndMarkers(tree: InstanceTree.TreeNode | null, level?: number, parentUid?: number): InstanceTree.FlattenedNodeWithEnd[];
//# sourceMappingURL=flatten.d.ts.map