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