feat: 删除节点复制节点
Some checks are pending
sync2gitee / repo-sync (push) Waiting to run
Typos Check / Spell Check with Typos (push) Waiting to run

This commit is contained in:
shaohuzhang1 2024-06-25 19:39:53 +08:00
parent 6126f0f397
commit cf1496118b

View File

@ -21,9 +21,7 @@ class CustomEdge2 extends BezierEdge {
this.isMounted = false
this.handleMouseUp = (e: any) => {
const element = e.target.parentNode.parentNode.querySelector('.lf-custom-edge-wrapper')
if (isMouseInElement(element, e)) {
this.props.model.isSelected = true
this.props.model.graphModel.deleteEdgeById(this.props.model.id)
}
}