Feat:新增节点图片点击事件
This commit is contained in:
parent
4ba82cd7f0
commit
774609f209
@ -52,8 +52,11 @@ function createImgNode() {
|
|||||||
if (this.getData('imageTitle')) {
|
if (this.getData('imageTitle')) {
|
||||||
node.attr('title', 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 => {
|
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 => {
|
node.on('mouseenter', e => {
|
||||||
this.mindMap.emit('node_img_mouseenter', this, node, e)
|
this.mindMap.emit('node_img_mouseenter', this, node, e)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user