Skip to content

Commit 006823b

Browse files
committed
update README.md
1 parent 7d45fa5 commit 006823b

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

README.md

+20
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,26 @@ const data = {
7777

7878
<img src="https://upload-images.jianshu.io/upload_images/3100736-9a338b3b8b6ee580.png" width="773px" style="display:inline;">
7979

80+
## API
81+
82+
参数(prop) | 说明(descripton) | 类型(type) | 默认值(default)
83+
-----------|-----------------------------------------|:----------------------:|:---------------------------------------------------------:
84+
data | 树结构数据 | `Object` | {}
85+
horizontal | 是否横向 | `Boolean` | `false`
86+
collapsable | 是否可折叠 | `Boolean` | `false`
87+
expandAll | 是否展开全部 | `Boolean` | `false`
88+
labelWidth | 树节点宽度 | `Number` | `auto`
89+
labelClassName | 树节点样式 | `String` | `white`
90+
onClick | 点击事件 | Function(e:Event, data)
91+
92+
#### 欢迎关注微信公众号`全栈弄潮儿` ,获取更多学习资源及技术文章等
93+
94+
* 微信公众号二维码,扫一扫或者搜索"全栈弄潮儿"即可关注
95+
96+
<p align='center'>
97+
<img src='https://upload-images.jianshu.io/upload_images/3100736-b722d7d753e6eaf9.jpg?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240' width='280' alt='Build errors'>
98+
</p>
99+
80100
[npm-image]: https://badge.fury.io/js/react-org-tree.svg
81101
[npm-url]: https://npmjs.org/package/react-org-tree
82102

0 commit comments

Comments
 (0)