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) // 关闭页面