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
+5
View File
@@ -29,6 +29,7 @@
:value="value"
:sort="sort"
:preview-mode="previewMode"
:show-array-index="showArrayIndex"
/>
</div>
<div
@@ -91,6 +92,10 @@ export default {
previewMode: {
type: Boolean,
default: false,
},
showArrayIndex: {
type: Boolean,
default: true,
}
},
provide () {