hookehuyr

控制结束节点不能有连接线,控制一个节点不能同时连接同样的节点

This diff is collapsed. Click to expand it.
/*
* @Date: 2023-10-27 09:29:48
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2023-11-15 15:56:03
* @LastEditTime: 2023-11-15 16:16:04
* @FilePath: /vue-flow-editor/doc/data.js
* @Description: 初始化结构,数据都是固定的
*/
......
......@@ -130,7 +130,7 @@ export function dragEdge(G6, option: OptionType) {
async _addEdge() {
if (this.origin.targetNode) {
const addModel = {
clazz: 'flow',
class: 'flow',
source: this.origin.sourceNode.get('id'),
target: this.origin.targetNode.get('id'),
sourceAnchor: this.origin.sourceAnchor,
......