123456789101112131415161718192021222324252627 |
- import { XEUtilsMethods } from '../xe-utils'
- export interface ToTreeArrayOptions {
- children?: string;
- data?: string;
- clear?: boolean;
- }
- /**
- * 将一个树结构转成数组列表
- * @param {Array} array 数组
- * @param {Object} options {children: 'children', data: 'data', clear: false}
- */
- export declare function toTreeArray(array: any[], options?: ToTreeArrayOptions): any[];
- declare module '../xe-utils' {
- interface XEUtilsMethods {
- /**
- * 将一个树结构转成数组列表
- * @param {Array} array 数组
- * @param {Object} options {children: 'children', data: 'data', clear: false}
- */
- toTreeArray: typeof toTreeArray;
- }
- }
- export default toTreeArray
|