File tree 2 files changed +30
-5
lines changed
2 files changed +30
-5
lines changed Original file line number Diff line number Diff line change 1
- # json-tree
1
+ # json-tree-pro
2
2
3
3
JSON tree view for Vue.
4
4
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
+
5
28
| GitHub | Gitee |
6
29
| -------------------------------------------------------| -----------------------------------------------------|
7
30
| [ Repository] ( https://github.com/mathink12/json-tree ) | [ Repository] ( https://gitee.com/mathink12/json-tree ) |
8
31
| [ Demo & Docs] ( https://mathink12.github.io/json-tree/ ) | [ Demo & Docs] ( http://mathink12.gitee.io/json-tree/ ) |
9
32
10
33
![ demo] ( ./docs/imgs/json-tree.gif )
11
34
35
+
12
36
## License
13
37
14
38
[ MIT] ( http://opensource.org/licenses/MIT )
Original file line number Diff line number Diff line change 1
1
# Getting started
2
2
3
3
1 . 安装 Install
4
-
5
- comming soon...
4
+ ``` bash
5
+ npm i json-tree-pro
6
+ ```
6
7
7
8
2 . 使用 Usage
8
9
``` js
9
10
// main.js
10
11
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'
13
14
14
15
Vue .component (' JsonTree' , JsonTree)
15
16
```
You can’t perform that action at this time.
0 commit comments