From ed025b9a0422ba8b99111047ad1cfa793576ac5c Mon Sep 17 00:00:00 2001 From: RDMStreet Date: Wed, 24 Mar 2021 09:38:30 +0000 Subject: [PATCH 1/2] contentKey dialog property --- package.json | 2 +- src/components/Dialog/SDialog.vue | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index f8c8f170..cf8ad7cc 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@soramitsu/soramitsu-js-ui", - "version": "0.8.3", + "version": "0.8.4", "private": false, "publishConfig": { "registry": "https://nexus.iroha.tech/repository/npm-soramitsu/" diff --git a/src/components/Dialog/SDialog.vue b/src/components/Dialog/SDialog.vue index ff094302..13b21476 100644 --- a/src/components/Dialog/SDialog.vue +++ b/src/components/Dialog/SDialog.vue @@ -22,7 +22,7 @@ @closed="handleAfterClosed" > - + @@ -132,6 +132,12 @@ export default class SDialog extends Mixins(BorderRadiusMixin) { * `(done: boolean) => {}` */ @Prop({ type: Function }) readonly beforeClose!: (done: boolean) => {} + /** + * Key for dialog content. + * + * `` by default + */ + @Prop({ default: '', type: String || Number }) readonly contentKey!: string | number @Ref('dialog') dialog!: any From 34154a4a6e9985b68859e171864300b14b7db9f9 Mon Sep 17 00:00:00 2001 From: RDMStreet Date: Wed, 24 Mar 2021 10:13:54 +0000 Subject: [PATCH 2/2] Fixes --- src/components/Dialog/SDialog.vue | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/components/Dialog/SDialog.vue b/src/components/Dialog/SDialog.vue index 13b21476..d838d025 100644 --- a/src/components/Dialog/SDialog.vue +++ b/src/components/Dialog/SDialog.vue @@ -22,7 +22,9 @@ @closed="handleAfterClosed" > - +
+ +
@@ -134,10 +136,10 @@ export default class SDialog extends Mixins(BorderRadiusMixin) { @Prop({ type: Function }) readonly beforeClose!: (done: boolean) => {} /** * Key for dialog content. - * - * `` by default + * If you need force rerender of table content (for instance, columns were changed) + * or something else in the dialog, you should set some condition value here. */ - @Prop({ default: '', type: String || Number }) readonly contentKey!: string | number + @Prop({ default: '', type: [String, Number] }) readonly contentKey!: string | number @Ref('dialog') dialog!: any