mirror of
https://github.com/wanglin2/mind-map.git
synced 2026-02-17 22:08:25 +08:00
Feat:新增节点图片点击事件
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user