From 8b68b1fc4849a21180ac2dfa2978155bcb83aee2 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: Mon, 25 Mar 2024 15:13:28 +0800 Subject: [PATCH] =?UTF-8?q?Feat=EF=BC=9A=E8=8A=82=E7=82=B9=E4=B8=AD?= =?UTF-8?q?=E7=9A=84=E5=9B=BE=E6=A0=87=E6=B7=BB=E5=8A=A0=E9=BC=A0=E6=A0=87?= =?UTF-8?q?=E7=A7=BB=E5=85=A5=E5=92=8C=E7=A7=BB=E5=87=BA=E4=BA=8B=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- simple-mind-map/src/core/render/node/nodeCreateContents.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/simple-mind-map/src/core/render/node/nodeCreateContents.js b/simple-mind-map/src/core/render/node/nodeCreateContents.js index 81a07606..56855947 100644 --- a/simple-mind-map/src/core/render/node/nodeCreateContents.js +++ b/simple-mind-map/src/core/render/node/nodeCreateContents.js @@ -94,6 +94,12 @@ function createIconNode() { node.on('click', e => { this.mindMap.emit('node_icon_click', this, item, e) }) + node.on('mouseenter', e => { + this.mindMap.emit('node_icon_mouseenter', this, item, e) + }) + node.on('mouseleave', e => { + this.mindMap.emit('node_icon_mouseleave', this, item, e) + }) return { node, width: iconSize,