|
6 | 6 |
|
7 | 7 | A vue 2.x component for rendering JSON data as a tree structure.
|
8 | 8 |
|
9 |
| -- basic: JSON pretty |
10 |
| -- advanced: get item data from JSON |
| 9 | +- As a JSON Formatter |
| 10 | +- Get item data from JSON |
11 | 11 |
|
12 | 12 | ## Links
|
13 | 13 |
|
@@ -49,25 +49,25 @@ export default {
|
49 | 49 |
|
50 | 50 | ## Props
|
51 | 51 |
|
52 |
| -- If you are using only the basic features (JSON pretty), just focus on the `base` properties. |
53 |
| -- If you are using advanced features (selected), you can use `base` and `advanced` attributes. |
| 52 | +- If you are using only the normal features (JSON pretty), just focus on the `base` properties. |
| 53 | +- If you are using higher features (Get data), you can use `base` and `higher` attributes. |
54 | 54 |
|
55 | 55 | | Attribute | Level | Description | Type | Default |
|
56 | 56 | |-------- |-------- |-------- |-------- | -------- |
|
57 |
| -| data | basic | json data | JSON object | - | |
58 |
| -| deep | basic | data depth, data larger than this depth will not be expanded | number | Infinity | |
59 |
| -| showLength | basic | whether to show the length when closed | boolean | false | |
60 |
| -| showLine | basic | whether to show the line | boolean | true | |
61 |
| -| showDoubleQuotes | basic | whether to show doublequotes on key | boolean | true | |
62 |
| -| highlightMouseoverNode | basic | highlight current node when mouseover | boolean | false | |
63 |
| -| v-model | advanced | defines value when the tree can be selected | string, array | -, [] | |
64 |
| -| path | advanced | root data path | string | root | |
65 |
| -| pathChecked | advanced | defines the selected data path | array | [] | |
66 |
| -| pathSelectable | advanced | defines whether a data path supports selection | Function(itemPath, itemData) | - | |
67 |
| -| selectableType | advanced | defines the selected type, this feature is not supported by default | enum: -, multiple, single | - | |
68 |
| -| showSelectController | advanced | whether to show the select controller at left | boolean | false | |
69 |
| -| selectOnClickNode | advanced | whether to change selected value when click node | boolean | true | |
70 |
| -| highlightSelectedNode | advanced | highlight current node when selected | boolean | true | |
| 57 | +| data | normal | json data | JSON object | - | |
| 58 | +| deep | normal | data depth, data larger than this depth will not be expanded | number | Infinity | |
| 59 | +| showLength | normal | whether to show the length when closed | boolean | false | |
| 60 | +| showLine | normal | whether to show the line | boolean | true | |
| 61 | +| showDoubleQuotes | normal | whether to show doublequotes on key | boolean | true | |
| 62 | +| highlightMouseoverNode | normal | highlight current node when mouseover | boolean | false | |
| 63 | +| v-model | higher | defines value when the tree can be selected | string, array | -, [] | |
| 64 | +| path | higher | root data path | string | root | |
| 65 | +| pathChecked | higher | defines the selected data path | array | [] | |
| 66 | +| pathSelectable | higher | defines whether a data path supports selection | Function(itemPath, itemData) | - | |
| 67 | +| selectableType | higher | defines the selected type, this feature is not supported by default | enum: -, multiple, single | - | |
| 68 | +| showSelectController | higher | whether to show the select controller at left | boolean | false | |
| 69 | +| selectOnClickNode | higher | whether to change selected value when click node | boolean | true | |
| 70 | +| highlightSelectedNode | higher | highlight current node when selected | boolean | true | |
71 | 71 |
|
72 | 72 | ## Events
|
73 | 73 |
|
|
0 commit comments