From 01c25b6d4ee7539c267f65a16f4ca71d8d29aa1c Mon Sep 17 00:00:00 2001 From: liukangdong <898885815@qq.com> Date: 星期二, 21 五月 2024 17:13:21 +0800 Subject: [PATCH] '' --- admin/src/components/common/GlobalWindow.vue | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/admin/src/components/common/GlobalWindow.vue b/admin/src/components/common/GlobalWindow.vue index 298b468..359891b 100644 --- a/admin/src/components/common/GlobalWindow.vue +++ b/admin/src/components/common/GlobalWindow.vue @@ -21,7 +21,8 @@ <div v-if="withFooter" class="window__footer"> <slot name="footer"> <el-button @click="confirm" :loading="confirmWorking" type="primary">{{text}}</el-button> - <el-button @click="close">杩斿洖</el-button> + <slot name="btns" /> + <el-button @click="close">{{ backText }}</el-button> </slot> </div> </el-drawer> @@ -45,6 +46,10 @@ type: String, default: '纭畾' }, + backText: { + type: String, + default: '杩斿洖' + }, // 纭鎸夐挳loading鐘舵�� confirmWorking: { type: Boolean, @@ -66,6 +71,7 @@ this.$emit('confirm') }, close () { + this.$emit('close') this.$emit('update:visible', false) } } -- Gitblit v1.9.3