@wisdom-components/devicetree
TODO: description
Usage
const devicetree = require('@wisdom-components/devicetree');
// 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){ } | - |