From 642a711bcd9bfc66f4b16c2667b9daea033c7aa5 Mon Sep 17 00:00:00 2001 From: LouisLam Date: Sat, 31 Jul 2021 18:58:12 +0800 Subject: [PATCH] Confirm Dialog: allow changing the button text --- .editorconfig | 3 +++ src/components/Confirm.vue | 12 ++++++++++-- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/.editorconfig b/.editorconfig index a882f5c2..3b272193 100644 --- a/.editorconfig +++ b/.editorconfig @@ -16,3 +16,6 @@ indent_size = 2 [*.yml] indent_size = 2 + +[*.vue] +trim_trailing_whitespace = false diff --git a/src/components/Confirm.vue b/src/components/Confirm.vue index 36d3781a..b235824b 100644 --- a/src/components/Confirm.vue +++ b/src/components/Confirm.vue @@ -13,10 +13,10 @@ @@ -33,6 +33,14 @@ export default { type: String, default: "btn-primary", }, + yesText: { + type: String, + default: "Yes", + }, + noText: { + type: String, + default: "No", + }, }, data: () => ({ modal: null,