|
@ -74,8 +74,6 @@ const emit = defineEmits(['buttonBaseClick', 'updataTableColumns']) |
|
|
let timer = ref(null) |
|
|
let timer = ref(null) |
|
|
const buttonBaseClick = (val, item, $event) => { |
|
|
const buttonBaseClick = (val, item, $event) => { |
|
|
if(!timer.value){ |
|
|
if(!timer.value){ |
|
|
clearButtonBlurHandle($event) //解决el-button点击后颜色不恢复问题 |
|
|
|
|
|
emit('buttonBaseClick', val, item, $event) |
|
|
|
|
|
timer.value = setTimeout(()=>{ |
|
|
timer.value = setTimeout(()=>{ |
|
|
if(timer.value){ |
|
|
if(timer.value){ |
|
|
console.log('清空timer',timer.value) |
|
|
console.log('清空timer',timer.value) |
|
@ -83,8 +81,19 @@ const buttonBaseClick = (val, item, $event) => { |
|
|
timer.value = null |
|
|
timer.value = null |
|
|
} |
|
|
} |
|
|
},2000) |
|
|
},2000) |
|
|
|
|
|
clearButtonBlurHandle($event) //解决el-button点击后颜色不恢复问题 |
|
|
|
|
|
emit('buttonBaseClick', val, item, $event) |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
onUnmounted(() => { |
|
|
|
|
|
if(timer.value){ |
|
|
|
|
|
console.log('清空timer',timer.value) |
|
|
|
|
|
clearTimeout(timer.value) |
|
|
|
|
|
timer.value = null |
|
|
} |
|
|
} |
|
|
|
|
|
}) |
|
|
const popoverVisible = ref(false) |
|
|
const popoverVisible = ref(false) |
|
|
// 关闭页面 |
|
|
// 关闭页面 |
|
|
const closeRowDrop = () => { |
|
|
const closeRowDrop = () => { |
|
|