2
0
mirror of https://github.com/tenrok/vue-json-viewer.git synced 2026-06-23 20:40:38 +03:00

feat: support showArrayIndex

This commit is contained in:
fengqi.cf
2021-12-18 15:43:44 +08:00
parent 9612c2f2d0
commit 343bad03b4
5 changed files with 14 additions and 2 deletions
+3 -1
View File
@@ -27,6 +27,7 @@ export default {
},
previewMode: Boolean,
forceExpand: Boolean,
showArrayIndex: Boolean,
},
data() {
return {
@@ -134,7 +135,8 @@ export default {
depth: this.depth,
expand: this.expand,
previewMode: this.previewMode,
forceExpand: this.forceExpandMe
forceExpand: this.forceExpandMe,
showArrayIndex: this.showArrayIndex,
},
on: {
'update:expand': value => {