Skip to content

Commit aa79ca5

Browse files
committed
Add deepCollapseChildren to basic demo
This is a new option provided for collapsing children inside those collapsed by default, so is exposed here
1 parent 6ae805f commit aa79ca5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

example/Basic.vue

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,18 @@
3434
<option :value="4">4</option>
3535
</select>
3636
</div>
37+
<div>
38+
<label>deepCollapseChildren</label>
39+
<input v-model="deepCollapseChildren" type="checkbox" />
40+
</div>
3741
</div>
3842
</div>
3943
<div class="block">
4044
<h3>vue-json-pretty:</h3>
4145
<vue-json-pretty
4246
:data="state.data"
4347
:deep="state.deep"
48+
:deepCollapseChildren="deepCollapseChildren"
4449
:show-double-quotes="state.showDoubleQuotes"
4550
:show-length="state.showLength"
4651
:show-line="state.showLine"
@@ -96,6 +101,7 @@ export default defineComponent({
96101
collapsedOnClickBrackets: true,
97102
useCustomLinkFormatter: false,
98103
deep: 3,
104+
deepCollapseChildren: false,
99105
});
100106
101107
const customLinkFormatter = (data, key, path, defaultFormatted) => {

0 commit comments

Comments
 (0)