Home > utils > TreeData > (constructor)
构造函数。
Signature:
constructor(data: TreeDataSingleRootData<TNode> | TreeDataMultipleRootData<TNode>, options?: TreeDataOptions<TNode>);
| Parameter | Type | Description |
|---|---|---|
| data | TreeDataSingleRootData<TNode> | TreeDataMultipleRootData<TNode> | 整棵树的数据 |
| options | TreeDataOptions<TNode> | 选项 |