2
0
mirror of https://github.com/tenrok/vue-json-viewer.git synced 2026-06-17 19:21:24 +03:00

#39 | expand property added

This commit is contained in:
mirchval
2020-04-01 11:08:01 +01:00
parent 7f56c4b0c0
commit 697ba0ec97
2 changed files with 6 additions and 1 deletions
+5 -1
View File
@@ -56,6 +56,10 @@ export default {
type: [Object, Array, String, Number, Boolean, Function],
required: true
},
expanded: {
type: Boolean,
default: false
},
expandDepth: {
type: Number,
default: 1
@@ -86,7 +90,7 @@ export default {
return {
copied: false,
expandableCode: false,
expandCode: false
expandCode: this.expanded
}
},
watch: {