Skip to content

Commit 33b0069

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 cc2e0f2 commit 33b0069

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
@@ -44,13 +44,18 @@
4444
</option>
4545
</select>
4646
</div>
47+
<div>
48+
<label>deepCollapseChildren</label>
49+
<input v-model="deepCollapseChildren" type="checkbox" />
50+
</div>
4751
</div>
4852
</div>
4953
<div class="block">
5054
<h3>vue-json-pretty:</h3>
5155
<vue-json-pretty
5256
:data="data"
5357
:deep="deep"
58+
:deepCollapseChildren="deepCollapseChildren"
5459
:show-double-quotes="showDoubleQuotes"
5560
:show-length="showLength"
5661
:show-line="showLine"
@@ -107,6 +112,7 @@ export default {
107112
collapsedOnClickBrackets: true,
108113
useCustomLinkFormatter: false,
109114
deep: 3,
115+
deepCollapseChildren: false,
110116
};
111117
},
112118
watch: {

0 commit comments

Comments
 (0)