From 44db498cedee7573d090797b1fe5c331c413b00a Mon Sep 17 00:00:00 2001
From: zzzz <690498789@qq.com>
Date: Mon, 22 Apr 2024 19:03:57 +0800
Subject: [PATCH] first
---
src/components/Dialog/index.vue | 16 ++++++++++------
1 files changed, 10 insertions(+), 6 deletions(-)
diff --git a/src/components/Dialog/index.vue b/src/components/Dialog/index.vue
index ef6d8a5..8c737cc 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>
--
Gitblit v1.9.3