From 1f3e6ae24f2a9b316c05aefe11c0368bcbe00140 Mon Sep 17 00:00:00 2001 From: fingerpich Date: Sun, 9 Dec 2018 16:35:15 +0330 Subject: [PATCH] fixed collapsing problem --- .idea/workspace.xml | 352 +++++++++++++------------------------------- src/JsonEditor.vue | 7 +- src/JsonView.vue | 2 +- 3 files changed, 101 insertions(+), 260 deletions(-) diff --git a/.idea/workspace.xml b/.idea/workspace.xml index abd7255..0900a0b 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -3,34 +3,55 @@ - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + - + - + - + @@ -39,7 +60,7 @@ - + @@ -48,16 +69,16 @@ - + - - + + - + @@ -69,7 +90,7 @@ - + @@ -78,25 +99,25 @@ - + - - + + - + - - + + - + @@ -105,11 +126,11 @@ - + - - + + @@ -143,6 +164,8 @@ isEdit hideMyBlock less + hide-block + console fingerpich @@ -165,13 +188,13 @@ @@ -191,7 +214,7 @@ - + - + - - - - + + + + + - - - - - - + + + + + + + + - - - + + + @@ -341,185 +376,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -566,23 +422,17 @@ - - - - - - - - + + + + + - - + + - - - @@ -590,7 +440,6 @@ - @@ -598,9 +447,6 @@ - - - @@ -611,10 +457,10 @@ - + - - + + @@ -625,31 +471,31 @@ - + - - + + - + - - + + - + - - + + - + - - + + diff --git a/src/JsonEditor.vue b/src/JsonEditor.vue index c6879cb..a97d239 100644 --- a/src/JsonEditor.vue +++ b/src/JsonEditor.vue @@ -29,7 +29,7 @@ export default { }, methods: { jsonChangedData: function(data) { - console.log('jsonView has changed', data); + // console.log('jsonView has changed', data); this.$emit('input', this.makeJson(data)) }, jsonParse: function (jsonStr) { @@ -41,14 +41,9 @@ export default { let parsedVal = val if(this.getType(val) === 'object') { parsedVal = parseJson(val) - // result.push(fr) } else if(this.getType(val) === 'array') { - - // console.debug('-- a --') - // console.debug(val) parsedVal = parseArray(val) - // result.push(fr) } let opt = { diff --git a/src/JsonView.vue b/src/JsonView.vue index 95f00d1..3bd58a8 100644 --- a/src/JsonView.vue +++ b/src/JsonView.vue @@ -1,6 +1,6 @@