Skip to content

Commit dbbe96f

Browse files
committed
update example .vue
1 parent 6a2ae64 commit dbbe96f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

example/App.vue

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@
3333
</select>
3434
<label>path</label>
3535
<input type="text" v-model="path">
36+
<label>showLength</label>
37+
<input type="checkbox" v-model="showLength">
38+
<label for="checkbox">{{ showLength }}</label>
3639
</div>
3740

3841
<h3>Latest Click Result:</h3>
@@ -44,6 +47,7 @@
4447
<vue-json-pretty
4548
:data="json"
4649
:path="path"
50+
:show-length="showLength"
4751
:path-checked="['res', 'res.c']"
4852
:path-selectable="((path, data) => typeof data !== 'number')"
4953
:selectable-type="selectableType"
@@ -84,6 +88,7 @@ export default {
8488
}]
8589
},
8690
selectableType: 'both',
91+
showLength: false,
8792
path: 'res',
8893
deep: 3,
8994
itemData: {},

0 commit comments

Comments
 (0)