Feat:新增节点图片点击事件

This commit is contained in:
wanglin2
2025-01-24 21:30:19 +08:00
parent 4ba82cd7f0
commit 774609f209

View File

@@ -52,8 +52,11 @@ function createImgNode() {
if (this.getData('imageTitle')) {
node.attr('title', this.getData('imageTitle'))
}
node.on('click', e => {
this.mindMap.emit('node_img_click', this, node, e)
})
node.on('dblclick', e => {
this.mindMap.emit('node_img_dblclick', this, e)
this.mindMap.emit('node_img_dblclick', this, e, node)
})
node.on('mouseenter', e => {
this.mindMap.emit('node_img_mouseenter', this, node, e)