|
|
@ -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(() => { |
|
|
|