Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ToTreeOptions<S, T>

配置项

Type parameters

Hierarchy

Index

Properties

Optional childrenKey

childrenKey: string

支持自定义 children 的属性名

Optional idKey

idKey: string

id 的属性名

Optional insert

insert: (siblings: S[], node: S) => void

允许外部接管插入行为

Type declaration

    • (siblings: S[], node: S): void
    • Parameters

      • siblings: S[]
      • node: S

      Returns void

Optional parentKey

parentKey: string

parentId 的属性名

Optional root

root: ID | Exporter<S>

顶级节点ID,支持自定义函数

Optional transform

transform: Transform<T, S>

允许外部转换数据

Generated using TypeDoc