rsuite-check-tree-2
v0.1.0
Published
A react check tree component
Downloads
8
Readme
rsuite-check-tree
check 树形控件,支持层级关系关联检查、受控与非受控设置、异步加载数据、自定义图标等。
快速开始
安装
npm install rsuite-check-tree --save
引入 less 文件
@import "~rsuite-check-tree/lib/less/index";
示例
import CheckTree from 'rsuite-check-tree';
<CheckTree
defaultExpandAll
data={treeData}
height={300}
defaultValue={['Dave']}
onExpand={(activeNode, layer) => {
console.log(activeNode, layer);
}}
onChange={(activeNode, layer) => {
console.log(activeNode, layer);
}}
/>