NuclearDispersionSystem/ant-design-vue-jeecg/node_modules/xe-utils/methods/array/toTreeArray.d.ts
2023-09-14 14:47:11 +08:00

27 lines
651 B
TypeScript

import { XEUtilsMethods } from '../xe-utils'
export interface ToTreeArrayOptions {
children?: string;
data?: string;
}
/**
* 将一个树结构转成数组列表
* @param {Array} array 数组
* @param {Object} options {children: 'children', data: 'data'}
*/
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'}
*/
toTreeArray: typeof toTreeArray;
}
}
export default toTreeArray