Commit c66c50ef authored by wuyongsheng's avatar wuyongsheng

fix: 流算子不可拖动修改

parent ea838479
...@@ -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"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment