From e69b41964ec731b9f8b52eecfd676322db89de81 Mon Sep 17 00:00:00 2001 From: ModestFun <61576426+ModestFun@users.noreply.github.com> Date: Tue, 24 Oct 2023 23:58:12 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix:=20=E4=BF=AE=E5=A4=8Dgroup?= =?UTF-8?q?=E8=8A=82=E7=82=B9=E7=9A=84=E5=AE=BD=E9=AB=98=20(#23)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * :bug: fix: readme * :bug: fix: readme * :sparkles: feat: 新增group节点width,height * :bug: fix: 修复renderNode的width --------- Co-authored-by: jiangchu --- src/ProFlow/helper.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ProFlow/helper.tsx b/src/ProFlow/helper.tsx index 30c38e1..e877d59 100644 --- a/src/ProFlow/helper.tsx +++ b/src/ProFlow/helper.tsx @@ -182,8 +182,8 @@ export const getRenderData = ( id: node.id!, position: { x: 0, y: 0 }, type: getTypeFromEdge(node), - width: 320, - height: 83, + width: node.group ? 355 : 320, + height: node.group ? 1100 : 83, className: cx(INIT_NODE), data: { label: node.group ? (