File tree Expand file tree Collapse file tree 2 files changed +30
-5
lines changed Expand file tree Collapse file tree 2 files changed +30
-5
lines changed Original file line number Diff line number Diff line change 1- # json-tree
1+ # json-tree-pro
22
33JSON tree view for Vue.
44
5+
6+ ## Installation & Usage
7+
8+ ``` bash
9+ npm i json-tree-pro
10+ ```
11+
12+ ``` js
13+ // main.js
14+ import Vue from ' vue'
15+ import JsonTree from ' json-tree-pro'
16+ import ' json-tree-pro/lib/JsonTree.css'
17+
18+ Vue .component (' JsonTree' , JsonTree)
19+ ```
20+
21+ ``` vue
22+ <JsonTree :json-data="{ name: 'Tom', age: 7 }" />
23+ ```
24+
25+
26+ ## Demo & Docs
27+
528| GitHub | Gitee |
629| -------------------------------------------------------| -----------------------------------------------------|
730| [ Repository] ( https://github.com/mathink12/json-tree ) | [ Repository] ( https://gitee.com/mathink12/json-tree ) |
831| [ Demo & Docs] ( https://mathink12.github.io/json-tree/ ) | [ Demo & Docs] ( http://mathink12.gitee.io/json-tree/ ) |
932
1033![ demo] ( ./docs/imgs/json-tree.gif )
1134
35+
1236## License
1337
1438[ MIT] ( http://opensource.org/licenses/MIT )
Original file line number Diff line number Diff line change 11# Getting started
22
331 . 安装 Install
4-
5- comming soon...
4+ ``` bash
5+ npm i json-tree-pro
6+ ```
67
782 . 使用 Usage
89 ``` js
910 // main.js
1011 import Vue from ' vue'
11- import JsonTree from ' json-tree'
12- import ' json-tree/lib/JsonTree.css'
12+ import JsonTree from ' json-tree-pro '
13+ import ' json-tree-pro /lib/JsonTree.css'
1314
1415 Vue .component (' JsonTree' , JsonTree)
1516 ```
You can’t perform that action at this time.
0 commit comments