From 8ca6796b5a987ade3bae5bed274dac0c85266701 Mon Sep 17 00:00:00 2001 From: jiangchu Date: Tue, 24 Oct 2023 22:39:07 +0800 Subject: [PATCH] =?UTF-8?q?:sparkles:=20feat:=20=E6=96=B0=E5=A2=9Egroup?= =?UTF-8?q?=E8=8A=82=E7=82=B9width,height?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/ProFlow/constants.tsx | 2 ++ src/ProFlow/helper.tsx | 2 ++ 2 files changed, 4 insertions(+) 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: [],