From 1e51ad558cf554108279784e4939c76530e9421e Mon Sep 17 00:00:00 2001 From: puriphatt Date: Mon, 10 Jun 2024 11:23:21 +0000 Subject: [PATCH] fix: change global dialog --- src/components/GlobalDialog.vue | 27 +++++++++++++++++++-------- 1 file changed, 19 insertions(+), 8 deletions(-) diff --git a/src/components/GlobalDialog.vue b/src/components/GlobalDialog.vue index 739bceea..ce0ec418 100644 --- a/src/components/GlobalDialog.vue +++ b/src/components/GlobalDialog.vue @@ -7,6 +7,7 @@ defineProps<{ actionText?: string; cancelText?: string; persistent?: boolean; + enablei18n?: boolean; action?: (...args: unknown[]) => void; cancel?: (...args: unknown[]) => void; }>(); @@ -15,7 +16,7 @@ defineProps<{
- {{ title }} - {{ message }} + + {{ enablei18n ? $t(title) : title }} + + + {{ enablei18n ? $t(message) : message }} +
@@ -87,7 +97,8 @@ defineProps<{ .box-icon { position: absolute; top: -40px; - right: 37.5%; + left: 50%; + transform: translateX(-50%); z-index: 999; }