You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`displaySize`|`boolean`\|`integer`\| 'collapsed' \| 'expanded' |`false`| Whether display the size of `Object`, `Array`. |
57
57
|`collapseStringsAfterLength`|`integer`|`99`| When an integer value is assigned, strings longer than that length will be truncated and indicated by an ellipsis. To expand or collapse the string content, simply click on the string value. |
|`ignoreLargeArray`(canary)|`boolean`|`false`| Prevent collapsing large array(length > 100) behavior since v0.2.7 |
60
-
|`collapseStringMode`|`'directly'`\|`'word'`\|`'address'`|`'directly'`| If the `word` is assigned, the collapsed length will be adjusted to fully display the last word.(English only)|
59
+
|`ignoreLargeArray`|`boolean`|`false`| Prevent collapsing large array(length > 100) behavior since v0.2.7 |
60
+
|`collapseStringMode`|`'directly'`\|`'word'`\|`'address'`|`'directly'`| If the `word` is assigned, the collapsed length will be adjusted to fully display the last word. |
61
61
|`collapsed`|`boolean`\|`integer`\|`function`|`false`| When set to true(false), all nodes will be (not) collapsed by default. When using an integer value, it will collapse at a specific depth. The collapsed also can be a function. |
62
62
|`collapseObjectsAfterLength`|`integer`|`99`| When an integer value is assigned, the object and array will initially collapse. |
63
63
|`editable`|`boolean`\| {add?: `boolean`, edit?: `boolean`, delete?: `boolean`} |`false`| When set to true, you can add, edit, or delete the property, and the actions will trigger onAdd, onEdit, or onDelete. Options is available. |
The editor uses `eval(<input-value>)`. While in edit mode, you can enter `({})` or `([])`, which will cause the result of eval to become a new object or array.
108
108
109
-
> canary: `{}` and `[]` will be auto convert to `({})`,`([])`
109
+
> `{}` and `[]` will be auto convert to `({})`,`([])`
110
110
### How the editor works
111
111
112
112
This component does not perform any cloning operations, so every step of the operation is carried out on the original object. If cloning is required, please handle it yourself.
0 commit comments