From 6b48d5d05a5e5329163d4bfbbbaee6bd67ff87bf Mon Sep 17 00:00:00 2001 From: jmal Date: Sun, 11 Apr 2021 16:45:14 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=EF=BC=9A=E6=8B=96=E6=8B=BD?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E6=97=B6=E9=BC=A0=E6=A0=87=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/ShowFile/ShowFile.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/ShowFile/ShowFile.vue b/src/components/ShowFile/ShowFile.vue index aeda901..71cd5f4 100644 --- a/src/components/ShowFile/ShowFile.vue +++ b/src/components/ShowFile/ShowFile.vue @@ -1077,7 +1077,6 @@ export default { div.style.overflow = 'hidden' draw.appendChild(div) document.onmousemove = function (e) { - console.log('onmousemove') let evt = window.event || e let scrollTop = document.body.scrollTop || document.documentElement.scrollTop let scrollLeft = document.body.scrollLeft || document.documentElement.scrollLeft @@ -1365,6 +1364,7 @@ export default { container.ondragend = function (e) { Bus.$emit('onDragStart', false) + e.dataTransfer.effectAllowed = 'none' // console.log('child'+dragIndex+'拖拽结束'); // 清除上次进入的容器的状态 const last = target.children[dragIndex]; @@ -1374,6 +1374,7 @@ export default { } // 开始拖拽 container.ondragstart = (e) => { + e.target.style.cursor = 'no-drop' // 正在选区获取按住关键键时禁止拖拽 if (_this.drawFlag || _this.isCmd || _this.selectPin) { e.preventDefault() @@ -1449,7 +1450,6 @@ export default { draggedIndex = dragged.rowIndex // 只有选中的才能拖拽 _this.cellMouseIndex = -1 - // dragged.style.cursor = 'not-allowed' dragBackCorlor = dragged.style.backgroundColor } }