rsuite-tree
v2.0.0
Published
A react tree component
Downloads
21
Readme
rsuite-tree
树形控件
# 快速开始
安装
npm install rsuite-tree --save
用法
引入 less 文件
@import "~rsuite-check-tree/lib/less/index";
export default () => (
<div className="doc-example">
<Tree
data={treeData}
height={300}
defaultExpandAll
defaultValue={'Dave'}
disabledItems={['disabled']}
onExpand={(activeNode, layer) => {
console.log(activeNode, layer);
}}
/>
</div>
);
更多用法:rsuite-tree 示例