Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
vue-flow-editor
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
hookehuyr
2023-11-15 17:07:44 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
479fd5da850df53c010a809bb06a29ad086d7f06
479fd5da
1 parent
93881aa1
控制结束节点不能有连接线,控制一个节点不能同时连接同样的节点
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
doc/App.vue
doc/data.js
src/behavior/drag-edge.ts
doc/App.vue
View file @
479fd5d
This diff is collapsed. Click to expand it.
doc/data.js
View file @
479fd5d
/*
* @Date: 2023-10-27 09:29:48
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2023-11-15 1
5:56:03
* @LastEditTime: 2023-11-15 1
6:16:04
* @FilePath: /vue-flow-editor/doc/data.js
* @Description: 初始化结构,数据都是固定的
*/
...
...
src/behavior/drag-edge.ts
View file @
479fd5d
...
...
@@ -130,7 +130,7 @@ export function dragEdge(G6, option: OptionType) {
async
_addEdge
()
{
if
(
this
.
origin
.
targetNode
)
{
const
addModel
=
{
cla
zz
:
'flow'
,
cla
ss
:
'flow'
,
source
:
this
.
origin
.
sourceNode
.
get
(
'id'
),
target
:
this
.
origin
.
targetNode
.
get
(
'id'
),
sourceAnchor
:
this
.
origin
.
sourceAnchor
,
...
...
@@ -159,4 +159,4 @@ export function dragEdge(G6, option: OptionType) {
}
}
});
}
\ No newline at end of file
}
...
...
Please
register
or
login
to post a comment