Feat:节点中的图标添加鼠标移入和移出事件

This commit is contained in:
街角小林
2024-03-25 15:13:28 +08:00
parent 4614a87bdd
commit 8b68b1fc48

View File

@@ -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,