Skip to content

Commit 81fcac6

Browse files
committed
doc: update README.
1 parent 46af3f3 commit 81fcac6

File tree

2 files changed

+25
-25
lines changed

2 files changed

+25
-25
lines changed

README.md

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -106,29 +106,29 @@ plugins: [
106106

107107
## Props
108108

109-
| Property | Description | Type | Default |
110-
| ------------------------ | ----------------------------------------------- | ---------------------------------------- |
111-
| data(v-model) | JSON data, support v-model when use editable | JSON object | - |
112-
| deep | Paths greater than this depth will be collapsed | number | - |
113-
| showLength | Show the length when collapsed | boolean | false |
114-
| showLine | Show the line | boolean | true |
115-
| showLineNumber | Show the line number | boolean | false |
116-
| showIcon | Show the icon | boolean | false |
117-
| showDoubleQuotes | Show doublequotes on key | boolean | true |
118-
| virtual | Use virtual scroll | boolean | false |
119-
| height | The height of list when using virtual | number | 400 |
120-
| itemHeight | The height of node when using virtual | number | 20 |
121-
| selectedValue.sync | Selected data path | string, array | - |
122-
| path | Root data path | string | 'root' |
123-
| pathSelectable | Defines whether a data path supports selection | function(path, content) | - |
124-
| selectableType | Support path select, default none | `multiple`\|`single` | - |
125-
| showSelectController | Show the select controller | boolean | false |
126-
| selectOnClickNode | Trigger select when click node | boolean | true |
127-
| highlightSelectedNode | Support highlighting selected nodes | boolean | true |
128-
| collapsedOnClickBrackets | Support click brackets to collapse | boolean | true |
129-
| customValueFormatter | Custom value rendering function | function(data, key, path, defaultResult) | - |
130-
| editable | Support editable | boolean | false |
131-
| editableTrigger | Trigger | `click` \| `dblclick` | 'click' |
109+
| Property | Description | Type | Default |
110+
| ------------------------ | ----------------------------------------------- | ---------------------------------------- | ------- |
111+
| data(v-model) | JSON data, support v-model when use editable | JSON object | - |
112+
| deep | Paths greater than this depth will be collapsed | number | - |
113+
| showLength | Show the length when collapsed | boolean | false |
114+
| showLine | Show the line | boolean | true |
115+
| showLineNumber | Show the line number | boolean | false |
116+
| showIcon | Show the icon | boolean | false |
117+
| showDoubleQuotes | Show doublequotes on key | boolean | true |
118+
| virtual | Use virtual scroll | boolean | false |
119+
| height | The height of list when using virtual | number | 400 |
120+
| itemHeight | The height of node when using virtual | number | 20 |
121+
| selectedValue.sync | Selected data path | string, array | - |
122+
| path | Root data path | string | 'root' |
123+
| pathSelectable | Defines whether a data path supports selection | function(path, content) | - |
124+
| selectableType | Support path select, default none | `multiple`, `single` | - |
125+
| showSelectController | Show the select controller | boolean | false |
126+
| selectOnClickNode | Trigger select when click node | boolean | true |
127+
| highlightSelectedNode | Support highlighting selected nodes | boolean | true |
128+
| collapsedOnClickBrackets | Support click brackets to collapse | boolean | true |
129+
| customValueFormatter | Custom value rendering function | function(data, key, path, defaultResult) | - |
130+
| editable | Support editable | boolean | false |
131+
| editableTrigger | Trigger | `click`, `dblclick` | 'click' |
132132

133133
## Events
134134

README.zh-CN.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,14 @@
2424
| selectedValue.sync | 双向绑定选中的数据路径 | string, array | string, array |
2525
| path | 定义最顶层数据路径 | string | root |
2626
| pathSelectable | 定义哪些数据路径可以被选择 | function(path, content) | - |
27-
| selectableType | 定义选择功能,默认无 | multiple, single | - |
27+
| selectableType | 定义选择功能,默认无 | `multiple`, `single` | - |
2828
| showSelectController | 展示选择器 | boolean | false |
2929
| selectOnClickNode | 支持点击节点的时候触发选择 | boolean | true |
3030
| highlightSelectedNode | 支持高亮已选择节点 | boolean | true |
3131
| collapsedOnClickBrackets | 支持点击括号折叠 | boolean | true |
3232
| customValueFormatter | 自定义值渲染 | function(data, key, path, defaultResult) | - |
3333
| editable | 支持可编辑 | boolean | false |
34-
| editableTrigger | 触发编辑的时机 | `click` \| `dblclick` | 'click' |
34+
| editableTrigger | 触发编辑的时机 | `click`, `dblclick` | 'click' |
3535

3636
## Events
3737

0 commit comments

Comments
 (0)