项目
在 GitHub 查看 React-treeview
chenglou/react-treeview
关于
使用 React 构建的树形视图组件,简单、轻量且灵活。
网站与应用开发实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- -1
- 1个月
- -1
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文React-treeview

Easy, light, flexible treeview made with React.
Demos from the demos folder.
install
Npm:
npm install react-treeview
Bower:
bower install react-treeview
The CSS file:
<link rel="stylesheet" type="text/css" href="path/to/react-treeview.css">
API
<TreeView />
The component accepts these props.
collapsed: whether the node is collapsed or not.defaultCollapsed: the uncontrolled equivalent tocollapsed.nodeLabel: the component or string (or anything renderable) that's displayed beside the TreeView arrow.itemClassName: the class name of the.tree-view_itemdiv.treeViewClassName: the class name of the.tree-viewdiv.childrenClassName: the class name of the.tree-view_childrenitem div.onClick: callback triggered when the arrow is clicked.
TreeViews can be naturally nested.
The extra properties transferred onto the arrow, so all attributes and events naturally work on it.
Styling
The CSS is flexible, commented and made to be easily customized. Feel free to inspect the demo's classes and check the short CSS code.
Build It Yourself/Run the Demos
Build: npm install && npm run prerelease
Demos: npm install && npm start && open http://localhost:3000
License
MIT.
探索相关项目
加载中…