From 7e74aa2c3b9f58bee42f58aac8bbced90f0ddf68 Mon Sep 17 00:00:00 2001 From: Tamius Han Date: Thu, 12 Mar 2020 23:35:52 +0100 Subject: [PATCH] Add ignoreKeys property to JsonEditor --- .../components/JsonEditor/JsonArray.vue | 3 ++ .../components/JsonEditor/JsonObject.vue | 36 ++++++++++--------- 2 files changed, 23 insertions(+), 16 deletions(-) diff --git a/src/common/components/JsonEditor/JsonArray.vue b/src/common/components/JsonEditor/JsonArray.vue index 0380207..db6fb3e 100644 --- a/src/common/components/JsonEditor/JsonArray.vue +++ b/src/common/components/JsonEditor/JsonArray.vue @@ -12,12 +12,14 @@ > @@ -41,6 +43,7 @@ export default { props: [ 'value', 'expanded', + 'ignoreKeys', // this prop is passthrough for JsonArray ], components: { JsonObject, diff --git a/src/common/components/JsonEditor/JsonObject.vue b/src/common/components/JsonEditor/JsonObject.vue index ac727c2..11ef46f 100644 --- a/src/common/components/JsonEditor/JsonObject.vue +++ b/src/common/components/JsonEditor/JsonObject.vue @@ -16,24 +16,27 @@
- - - + - - - - + > + + + + + +
},
@@ -50,6 +53,7 @@ export default { 'value', 'label', 'expanded', + 'ignoreKeys', ], components: { JsonArray,