Function treeToArray

  • 将树形结构转换为扁平化数组

    Type Parameters

    • T

    Parameters

    • tree: T

      树形结构

    • array: T[] = ...

      扁平化数组

    • options: {
          childrenKey?: string;
          delChidlrenKey?: boolean;
      } = ...

      配置项

      • Optional childrenKey?: string
      • Optional delChidlrenKey?: boolean

    Returns T[]

    扁平化数组

Generated using TypeDoc