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/" 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) {