From 94ad624fb8172c5ab90f5fcdcd1c3a51b4a33f86 Mon Sep 17 00:00:00 2001 From: fofolee Date: Tue, 26 Apr 2022 09:41:23 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=96=E6=B6=88v-close-popup?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/quickcommandUI/ButtonBox.vue | 5 ++++- src/components/quickcommandUI/ConfirmBox.vue | 15 ++++++--------- src/components/quickcommandUI/InputBox.vue | 10 +++++++--- src/components/quickcommandUI/QuickCommand.vue | 9 ++++++++- src/components/quickcommandUI/TextArea.vue | 6 +++++- 5 files changed, 30 insertions(+), 15 deletions(-) diff --git a/src/components/quickcommandUI/ButtonBox.vue b/src/components/quickcommandUI/ButtonBox.vue index e20c357..9f941b6 100644 --- a/src/components/quickcommandUI/ButtonBox.vue +++ b/src/components/quickcommandUI/ButtonBox.vue @@ -9,7 +9,6 @@ class="full-width" color="primary" :label="label" - v-close-popup @click="clickOK(label, index)" /> @@ -28,8 +27,12 @@ export default { options: Object, }, methods: { + hide() { + this.$emit("hide"); + }, clickOK(label, index) { this.$emit("clickOK", { id: index, text: label }); + this.hide(); }, }, }; diff --git a/src/components/quickcommandUI/ConfirmBox.vue b/src/components/quickcommandUI/ConfirmBox.vue index 4f07dad..7266c1f 100644 --- a/src/components/quickcommandUI/ConfirmBox.vue +++ b/src/components/quickcommandUI/ConfirmBox.vue @@ -7,15 +7,8 @@ {{ options.message }} - - + + @@ -23,8 +16,12 @@