@zuiwoxing/posisi
Version:
一款基于typescript 前端控制组件,包括(IOC,AOP,Feign,Logger,Util等)
21 lines (20 loc) • 499 B
TypeScript
/**
*@desc 通用树
*@author liudejian
*@date 2020-07-03 16:03
**/
import { CommonTree } from "../model/CommonTree";
export declare class CommonTreeUtil {
/**
* 将分类转为树结构
* @param categorys
* @param checkedIds
* @param maxLevel
*/
static convertToTree(treeBos: Array<CommonTree>, checkedIds: Array<number>, maxLevel: number): Array<CommonTree>;
/**
* 排序
* @param rts
*/
static sortTree(rts: Array<CommonTree>): void;
}