Feat:协同编辑时的人员头像增加鼠标事件
This commit is contained in:
parent
3b4195acc5
commit
7c6b67e8fb
@ -67,6 +67,15 @@ function updateUserListNode() {
|
|||||||
} else {
|
} else {
|
||||||
node = this.createTextAvatar(item)
|
node = this.createTextAvatar(item)
|
||||||
}
|
}
|
||||||
|
node.on('click', (e) => {
|
||||||
|
this.mindMap.emit('node_cooperate_avatar_click', item, this, node, e)
|
||||||
|
})
|
||||||
|
node.on('mouseenter', (e) => {
|
||||||
|
this.mindMap.emit('node_cooperate_avatar_mouseenter', item, this, node, e)
|
||||||
|
})
|
||||||
|
node.on('mouseleave', (e) => {
|
||||||
|
this.mindMap.emit('node_cooperate_avatar_mouseleave', item, this, node, e)
|
||||||
|
})
|
||||||
node.x(index * avatarSize).cy(-avatarSize / 2)
|
node.x(index * avatarSize).cy(-avatarSize / 2)
|
||||||
this._userListGroup.add(node)
|
this._userListGroup.add(node)
|
||||||
})
|
})
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user