From 5dfb843c29fdcc1693961b70a36ddee3fea85a4a Mon Sep 17 00:00:00 2001
From: jhzh <1628036192@qq.com>
Date: Fri, 27 Feb 2026 16:33:11 +0800
Subject: [PATCH] 1

---
 src/components/Dialog/index.vue |   20 ++++++++++++--------
 1 files changed, 12 insertions(+), 8 deletions(-)

diff --git a/src/components/Dialog/index.vue b/src/components/Dialog/index.vue
index ef6d8a5..853b8c9 100644
--- a/src/components/Dialog/index.vue
+++ b/src/components/Dialog/index.vue
@@ -11,10 +11,10 @@
 
     <div class="footer">
       <div class="cancel-dialog" @click="show = false" v-if="showCancelButton">
-        {{ cancelButtonText }}
+        {{ $t(cancelButtonText) }}
       </div>
-      <div class="confirm-dialog" v-if="showConfirmButton">
-        {{ confirmButtonText }}
+      <div class="confirm-dialog" v-if="showConfirmButton" @click="confirm">
+        {{ $t(confirmButtonText) }}
       </div>
     </div>
   </van-dialog>
@@ -30,11 +30,11 @@
     },
     "confirm-button-text": {
       type: String,
-      default: "确定",
+      default: "hj161",
     },
     "cancel-button-text": {
       type: String,
-      default: "取消",
+      default: "qx",
     },
     "show-cancel-button": {
       type: Boolean,
@@ -43,6 +43,10 @@
     "show-confirm-button": {
       type: Boolean,
       default: true,
+    },
+    confirm: {
+      type: Function,
+      default: () => {},
     },
   },
   components: {
@@ -53,7 +57,7 @@
       show: false,
     };
   },
-  closeAll() {},
+  methods: {},
 };
 </script>
 
@@ -87,8 +91,8 @@
       flex: 1;
       height: 100%;
       padding: 0 15px;
-      background-color: #1989fa;
-      border: 1px solid #1989fa;
+      background-color: #185546;
+      border: 1px solid #185546;
       color: #fff;
       margin-left: 20px;
     }

--
Gitblit v1.9.3