Skip to content

Commit efd0f9d

Browse files
committed
update README. Add a description about showLength
1 parent 0f0000c commit efd0f9d

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@ export default {
5454
| Attribute | Level | Description | Type | Default |
5555
|-------- |-------- |-------- |-------- | -------- |
5656
| data | basic | json data | JSON object | - |
57-
| deep | basic |data depth, data larger than this depth will not be expanded | number | Infinity |
57+
| deep | basic | data depth, data larger than this depth will not be expanded | number | Infinity |
58+
| showLength | basic | whether to show the length when closed | boolean | false |
5859
| path | advanced | root data path | string | root |
5960
| pathChecked | advanced | defines the selected data path | array | [] |
6061
| pathSelectable | advanced | defines whether a data path supports selection | Function(itemPath, itemData) | - |

README.zh-CN.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ export default {
5555
|-------- |-------- |-------- |-------- | -------- |
5656
| data | 基础 | 待美化的源数据,注意不是 `JSON` 字符串 | `JSON` 对象 | - |
5757
| deep | 基础 | 数据深度, 大于该深度的数据将不被展开 | number | Infinity |
58+
| showLength | 基础 | 是否在数据线闭合的时候展示长度 | boolean | false |
5859
| path | 高级 | 定义最顶层数据层级 | string | root |
5960
| pathChecked | 高级 | 定义哪些数据层级是已被选中的 | array | [] |
6061
| pathSelectable | 高级 | 定义哪些数据层级是可以被选中的 | Function(itemPath, itemData) | - |

0 commit comments

Comments
 (0)