mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
feat: 删除节点复制节点
This commit is contained in:
parent
6126f0f397
commit
cf1496118b
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue