Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
B
bkunyun
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
bkunyun
Commits
c66c50ef
Commit
c66c50ef
authored
Aug 24, 2022
by
wuyongsheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 流算子不可拖动修改
parent
ea838479
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
index.tsx
...ct/components/Flow/components/BatchOperatorFlow/index.tsx
+10
-10
No files found.
src/views/Project/components/Flow/components/BatchOperatorFlow/index.tsx
View file @
c66c50ef
...
@@ -234,9 +234,9 @@ const BatchOperatorFlow = (props: IProps) => {
...
@@ -234,9 +234,9 @@ const BatchOperatorFlow = (props: IProps) => {
};
};
/** node节点 */
/** node节点 */
const
[
nodes
,
setNodes
]
=
useNodesState
(
initialNodes
);
const
[
nodes
,
setNodes
,
onNodesChange
]
=
useNodesState
(
initialNodes
);
/** 连线数组 */
/** 连线数组 */
const
[
edges
,
setEdges
]
=
useEdgesState
(
initialEdges
);
const
[
edges
,
setEdges
,
onEdgesChange
]
=
useEdgesState
(
initialEdges
);
useEffect
(()
=>
{
useEffect
(()
=>
{
setEdges
(
initialEdges
);
setEdges
(
initialEdges
);
...
@@ -367,15 +367,15 @@ const BatchOperatorFlow = (props: IProps) => {
...
@@ -367,15 +367,15 @@ const BatchOperatorFlow = (props: IProps) => {
setInSideFlowNodeId
(
""
);
setInSideFlowNodeId
(
""
);
},
[]);
},
[]);
const
onNodesChange
=
(
val
:
any
)
=>
{
//
const onNodesChange = (val: any)=>{
// 自定义change事件 不允许react flow组件本身删除事件
//
// 自定义change事件 不允许react flow组件本身删除事件
return
//
return
}
//
}
const
onEdgesChange
=
(
val
:
any
)
=>
{
//
const onEdgesChange = (val: any) =>{
// 自定义change事件 不允许react flow组件本身删除事件
//
// 自定义change事件 不允许react flow组件本身删除事件
return
;
//
return;
}
//
}
const
reactFlowParams
=
const
reactFlowParams
=
flowType
===
"edit"
flowType
===
"edit"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment