|
|
@ -71,18 +71,19 @@ const props = defineProps({ |
|
|
|
// 传递给父类 |
|
|
|
const emit = defineEmits(['buttonBaseClick', 'updataTableColumns']) |
|
|
|
|
|
|
|
let timer = ref(null) |
|
|
|
const buttonBaseClick = (val, item, $event) => { |
|
|
|
let timer = null |
|
|
|
if(!timer){ |
|
|
|
if(!timer.value){ |
|
|
|
clearButtonBlurHandle($event) //解决el-button点击后颜色不恢复问题 |
|
|
|
emit('buttonBaseClick', val, item, $event) |
|
|
|
timer = setTimeout(()=>{ |
|
|
|
if(timer){ |
|
|
|
clearTimeout(timer) |
|
|
|
timer.value = setTimeout(()=>{ |
|
|
|
if(timer.value){ |
|
|
|
console.log('清空timer',timer.value) |
|
|
|
clearTimeout(timer.value) |
|
|
|
timer.value = null |
|
|
|
} |
|
|
|
},2000) |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
const popoverVisible = ref(false) |
|
|
|
// 关闭页面 |
|
|
|