hookehuyr

暂时屏蔽边的选中状态,因为会影响删除节点时判断逻辑

...@@ -57,7 +57,8 @@ export function clickSelect(G6) { ...@@ -57,7 +57,8 @@ export function clickSelect(G6) {
57 if (item.get('type') === 'node') { 57 if (item.get('type') === 'node') {
58 selectChangeFlag = true 58 selectChangeFlag = true
59 item.getEdges().forEach(edge => { 59 item.getEdges().forEach(edge => {
60 - graph.setItemState(edge, SELECTED_STATE, true); 60 + // TODO: 暂时屏蔽边的选中状态,因为会影响删除节点时判断逻辑,后面处理
61 + // graph.setItemState(edge, SELECTED_STATE, true);
61 }); 62 });
62 } else { 63 } else {
63 this.onCanvasClick(); 64 this.onCanvasClick();
......