README.md 593 Bytes
Newer Older
涂茜's avatar
涂茜 committed
1
# `@wisdom-components/devicetree`
涂茜's avatar
涂茜 committed
2 3 4 5 6 7

> TODO: description

## Usage

```
涂茜's avatar
涂茜 committed
8
const devicetree = require('@wisdom-components/devicetree');
涂茜's avatar
涂茜 committed
9 10 11 12 13 14 15 16 17 18 19 20

// TODO: DEMONSTRATE API
```

## API

api 参考 Antd Tree 组件 https://ant.design/components/tree-cn/

| 参数 | 说明 | 类型 | 默认值 |
| --- | --- | --- | --- |
| treeData | treeNodes 数据,如果设置则不需要手动构造 TreeNode 节点(key 在整个树范围内唯一) | array<{key, title, children, [disabled, selectable]}> | - |
| onSearch | 搜索框输入事件的回调,会返回搜索框输入信息 | function(value){ } | - |