From 4d69b085cc89b966159efded48864afd617a4ce7 Mon Sep 17 00:00:00 2001 From: RDMStreet Date: Tue, 6 Apr 2021 06:14:52 +0000 Subject: [PATCH 1/2] Add options property for json input --- src/components/Input/SJsonInput.vue | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/src/components/Input/SJsonInput.vue b/src/components/Input/SJsonInput.vue index 8e979cdf..756bcc32 100644 --- a/src/components/Input/SJsonInput.vue +++ b/src/components/Input/SJsonInput.vue @@ -6,7 +6,7 @@ {} }) readonly options!: object /** * Disabled state. * @@ -51,7 +55,7 @@ export default class SJsonInput extends Vue { @Ref('jsoneditor') jsoneditor!: any model = this.value - options = { + defultOptions = { // https://github.com/josdejong/jsoneditor/blob/master/docs/api.md#configuration-options mode: 'code', mainMenuBar: false, @@ -64,6 +68,13 @@ export default class SJsonInput extends Vue { } } + get computedOptions () { + return { + ...this.defultOptions, + ...this.options + } + } + get computedClasses (): Array { const cssClasses: Array = [] if (this.disabled) { From e2f777c5b6424e07d25bf4c77061a6856a83678e Mon Sep 17 00:00:00 2001 From: RDMStreet Date: Tue, 6 Apr 2021 06:18:39 +0000 Subject: [PATCH 2/2] Change version to 0.8.7 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 5ed95df7..c4c078e8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@soramitsu/soramitsu-js-ui", - "version": "0.8.6", + "version": "0.8.7", "private": false, "publishConfig": { "registry": "https://nexus.iroha.tech/repository/npm-soramitsu/"