1 | export interface ToTreeArrayOptions {
|
2 | children?: string;
|
3 | data?: string;
|
4 | clear?: boolean;
|
5 | }
|
6 |
|
7 | /**
|
8 | * 将一个树结构转成数组列表
|
9 | * @param {Array} list 数组
|
10 | * @param {Object} options { children: 'children', data: 'data', clear: false }
|
11 | */
|
12 | export declare function toTreeArray<T>(list: T[], options?: ToTreeArrayOptions): T[];
|
13 | export declare function toTreeArray(list: any, options?: ToTreeArrayOptions): any[];
|
14 |
|
15 | declare module './ctor' {
|
16 | interface XEUtilsMethods {
|
17 | toTreeArray: typeof toTreeArray;
|
18 | }
|
19 | }
|
20 |
|
21 | export default toTreeArray
|