NuclearDispersionSystem/ant-design-vue-jeecg/node_modules/xe-utils/methods/array/eachTree.d.ts

32 lines
1.0 KiB
TypeScript
Raw Normal View History

2023-09-14 14:47:11 +08:00
import { XEUtilsMethods } from '../xe-utils'
export declare function eachTreeIterate(item: any, index: number, items: any[], path: Array<string>, parent: any, nodes: any[]): any;
export interface EachTreeOptions {
children?: string;
}
/**
*
* @param {Object} obj /
* @param {Function} iterate(item, index, items, path, parent, nodes)
* @param {Object} options {children: 'children'}
* @param {Object} context
*/
export declare function eachTree(array: any[], iterate: typeof eachTreeIterate, options?: EachTreeOptions, context?: any): void;
declare module '../xe-utils' {
interface XEUtilsMethods {
/**
*
* @param {Object} obj /
* @param {Function} iterate(item, index, items, path, parent, nodes)
* @param {Object} options {children: 'children'}
* @param {Object} context
*/
eachTree: typeof eachTree;
}
}
export default eachTree