From f8e9af35a267b7b9a2bf605187a11536889a6e38 Mon Sep 17 00:00:00 2001
From: jhzh <1628036192@qq.com>
Date: Mon, 20 May 2024 11:00:10 +0800
Subject: [PATCH] 修改:绑定银行卡 多语言
---
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