|
10 | 10 |
|
11 | 11 | <div align="center">
|
12 | 12 |
|
13 |
| -A Vue component for rendering JSON data as a tree structure. |
| 13 | +<p>A Vue component for rendering JSON data as a tree structure.</p> |
| 14 | +<p>Now it supports Vue3 at least. If you still use Vue2, see <a href="https://github.com/leezng/vue-json-pretty/tree/1.x">1.x</a>.</p> |
14 | 15 |
|
15 | 16 | [](https://travis-ci.org/leezng/vue-json-pretty)
|
16 | 17 | [](https://www.npmjs.org/package/vue-json-pretty)
|
@@ -110,15 +111,15 @@ plugins: [
|
110 | 111 | | showDoubleQuotes | normal | Whether to show doublequotes on key | boolean | true |
|
111 | 112 | | virtual | normal | Whether to use virtual scrolling, usually used for big data | boolean | false |
|
112 | 113 | | itemHeight | normal | The height of each item when using virtual scrolling | number | auto |
|
113 |
| -| v-model | higher | Defines value when the tree can be selected | string, array | -, [] | |
114 |
| -| path | higher | root data path | string | root | |
115 |
| -| pathSelectable | higher | Defines whether a data path supports selection | Function(path, content) | - | |
| 114 | +| v-model | higher | Defines value when the tree can be selected | string, array | - | |
| 115 | +| path | higher | Root data path | string | root | |
| 116 | +| pathSelectable | higher | Defines whether a data path supports selection | function(path, content) | - | |
116 | 117 | | selectableType | higher | Defines the selected type, this feature is not supported by default | multiple, single | - |
|
117 | 118 | | showSelectController | higher | Whether to show the select controller at left | boolean | false |
|
118 | 119 | | selectOnClickNode | higher | Whether to change selected value when click node | boolean | true |
|
119 | 120 | | highlightSelectedNode | higher | Highlight current node when selected | boolean | true |
|
120 | 121 | | collapsedOnClickBrackets | higher | Collapsed control | boolean | true |
|
121 |
| -| customValueFormatter | higher | A function that can return different html or strings to display for values in the data. | Function(data, key, path, defaultFormatResult) | - | |
| 122 | +| customValueFormatter | higher | A function that can return different html or strings to display for values in the data. | function(data, key, path, defaultFormatResult) | - | |
122 | 123 |
|
123 | 124 | ## Events
|
124 | 125 |
|
|
0 commit comments