diff --git a/src/ProFlow/constants.tsx b/src/ProFlow/constants.tsx index 49369b0..1f1a2d2 100644 --- a/src/ProFlow/constants.tsx +++ b/src/ProFlow/constants.tsx @@ -24,6 +24,8 @@ export interface NodeMapItem { title?: string; group?: boolean; des?: string; + width?: number; + height?: number; danger?: boolean; dangerCount?: number; type?: 'input' | 'output' | 'default'; diff --git a/src/ProFlow/helper.tsx b/src/ProFlow/helper.tsx index 29f480c..30c38e1 100644 --- a/src/ProFlow/helper.tsx +++ b/src/ProFlow/helper.tsx @@ -37,6 +37,8 @@ export function convertMappingFrom(nodes: ProFlowNode[], edges: ProFlowEdge[], z mapping[node.id] = { id: node.id, group: node.group, + width: node.group ? 355 : 322, + height: node.group ? 1100 : 85, data: node.data, select: node.select, right: [],