hookehuyr

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

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