diff --git a/src/layout/components/Header/RecycleModal.vue b/src/layout/components/Header/RecycleModal.vue index a028167..3082aff 100644 --- a/src/layout/components/Header/RecycleModal.vue +++ b/src/layout/components/Header/RecycleModal.vue @@ -144,15 +144,18 @@ function downHandler(event: MouseEvent) { if (!selectionBox) return - selectIds.value.length = 0 - - start = { x: event.clientX, y: event.clientY } - selectionBox.style.width = '0' - selectionBox.style.height = '0' - selectionBox.style.left = `${start.x}px` - selectionBox.style.top = `${start.y}px` - selectionBox.style.display = 'block' - selectionBox.style.zIndex = '9999' + const classname = (event.target as any).className + + if (!classname.includes('checkbox')) { + selectIds.value.length = 0 + start = { x: event.clientX, y: event.clientY } + selectionBox.style.width = '0' + selectionBox.style.height = '0' + selectionBox.style.left = `${start.x}px` + selectionBox.style.top = `${start.y}px` + selectionBox.style.display = 'block' + selectionBox.style.zIndex = '9999' + } } function imUpdateSelectIds(x: number, y: number, w: number, h: number) { @@ -238,6 +241,12 @@ function closeModal(event: MouseEvent) { defineExpose({ showModal, }) + +const checked = ref(false) +function onCheckChange(val: any, item: any) { + checked.value = val + console.log('onCheckChange') +}