/** * @param tree 树结构 * @param childField 每个节点中子树的字段名 * @returns 扁平数组 */ declare function transformArray(tree?: any[], childField?: string): any[]; export default transformArray;