From 7fec5a2177021e342183d65dd52107813b783bdd Mon Sep 17 00:00:00 2001 From: yufei0306 <13417315+yufei0306@user.noreply.gitee.com> Date: Tue, 11 Jun 2024 09:39:12 +0800 Subject: [PATCH] =?UTF-8?q?=E6=93=8D=E4=BD=9C=E6=8C=89=E9=92=AE=E9=98=B2?= =?UTF-8?q?=E6=AD=A2=E9=87=8D=E5=A4=8D=E7=82=B9=E5=87=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/XButton/src/ButtonBase.vue | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/components/XButton/src/ButtonBase.vue b/src/components/XButton/src/ButtonBase.vue index 18d850111..adf88fab7 100644 --- a/src/components/XButton/src/ButtonBase.vue +++ b/src/components/XButton/src/ButtonBase.vue @@ -72,8 +72,17 @@ const props = defineProps({ const emit = defineEmits(['buttonBaseClick', 'updataTableColumns']) const buttonBaseClick = (val, item, $event) => { - clearButtonBlurHandle($event) //解决el-button点击后颜色不恢复问题 - emit('buttonBaseClick', val, item, $event) + let timer = null + if(!timer){ + clearButtonBlurHandle($event) //解决el-button点击后颜色不恢复问题 + emit('buttonBaseClick', val, item, $event) + timer = setTimeout(()=>{ + if(timer){ + clearTimeout(timer) + } + },2000) + } + } const popoverVisible = ref(false) // 关闭页面