From a00d7f41518d94b4a89b0c786090eae526b3c800 Mon Sep 17 00:00:00 2001 From: wangyufei <2267742828@qq.com> Date: Thu, 20 Jun 2024 17:23:38 +0800 Subject: [PATCH] =?UTF-8?q?=E9=98=B2=E6=AD=A2=E9=87=8D=E5=A4=8D=E7=82=B9?= =?UTF-8?q?=E5=87=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/XButton/src/ButtonBase.vue | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/components/XButton/src/ButtonBase.vue b/src/components/XButton/src/ButtonBase.vue index e9486efe3..5741536c4 100644 --- a/src/components/XButton/src/ButtonBase.vue +++ b/src/components/XButton/src/ButtonBase.vue @@ -73,18 +73,18 @@ const emit = defineEmits(['buttonBaseClick', 'updataTableColumns']) let timer = ref(null) const buttonBaseClick = (val, item, $event) => { - if(!timer.value){ - timer.value = setTimeout(()=>{ - if(timer.value){ - console.log('清空timer',timer.value) - clearTimeout(timer.value) - timer.value = null - } - },2000) + // if(!timer.value){ + // timer.value = setTimeout(()=>{ + // if(timer.value){ + // console.log('清空timer',timer.value) + // clearTimeout(timer.value) + // timer.value = null + // } + // },2000) clearButtonBlurHandle($event) //解决el-button点击后颜色不恢复问题 emit('buttonBaseClick', val, item, $event) - } + // } } onUnmounted(() => {