From 0d465f28f3764e2c05fa628eae24b87a43092d42 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=A1=97=E8=A7=92=E5=B0=8F=E6=9E=97?= <1013335014@qq.com> Date: Fri, 20 Sep 2024 16:37:07 +0800 Subject: [PATCH] =?UTF-8?q?Feat=EF=BC=9A=E6=B3=A8=E9=87=8A=E6=8E=89?= =?UTF-8?q?=E9=9D=9Ehttps=E6=83=85=E5=86=B5=E4=B8=8B=E7=9A=84=E7=B2=98?= =?UTF-8?q?=E8=B4=B4=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- simple-mind-map/src/core/render/Render.js | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/simple-mind-map/src/core/render/Render.js b/simple-mind-map/src/core/render/Render.js index 4091c2b7..112280aa 100644 --- a/simple-mind-map/src/core/render/Render.js +++ b/simple-mind-map/src/core/render/Render.js @@ -163,13 +163,14 @@ class Render { }) } // 处理非https下的复制黏贴问题 - if (!navigator.clipboard) { - this.handlePaste = this.handlePaste.bind(this) - window.addEventListener('paste', this.handlePaste) - this.mindMap.on('beforeDestroy', () => { - window.removeEventListener('paste', this.handlePaste) - }) - } + // 暂时不启用,因为给页面的其他输入框(比如节点文本编辑框)粘贴内容也会触发,冲突问题暂时没有想到好的解决方法,不可能要求所有输入框都阻止冒泡 + // if (!navigator.clipboard) { + // this.handlePaste = this.handlePaste.bind(this) + // window.addEventListener('paste', this.handlePaste) + // this.mindMap.on('beforeDestroy', () => { + // window.removeEventListener('paste', this.handlePaste) + // }) + // } } // 性能模式,懒加载节点