From 3881a69eab4f9b36ca45cc62956c3934c9ac2904 Mon Sep 17 00:00:00 2001 From: jmal Date: Sat, 24 Apr 2021 10:34:46 +0800 Subject: [PATCH] =?UTF-8?q?fix(file=20management):=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E9=87=8D=E5=90=8D=E6=97=B6=E4=B8=8D=E8=83=BD=E6=8B=96=E5=8A=A8?= =?UTF-8?q?=E9=80=89=E4=B8=AD=E6=96=87=E5=AD=97=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/ShowFile/ShowFile.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/ShowFile/ShowFile.vue b/src/components/ShowFile/ShowFile.vue index e9ee1bf..7b7af68 100644 --- a/src/components/ShowFile/ShowFile.vue +++ b/src/components/ShowFile/ShowFile.vue @@ -1374,7 +1374,6 @@ export default { } // 开始拖拽 container.ondragstart = (e) => { - e.target.style.cursor = 'no-drop' // 正在选区获取按住关键键时禁止拖拽 if (_this.drawFlag || _this.isCmd || _this.selectPin) { e.preventDefault() @@ -1387,8 +1386,11 @@ export default { } // 该文件正在重命名 if (e.target.rowIndex === _this.editingIndex){ + e.preventDefault() + e.stopPropagation() return } + e.target.style.cursor = 'no-drop' // 当滚动条滚动后禁止拖拽 if (_this.fileListScrollTop === 0) { // 复制被拖拽dom的title, 拖拽过程中移除, 拖拽完后还原