UNPKG

xhy-xe-utils

Version:
26 lines (22 loc) 675 B
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