Skip to content

Commit

Permalink
🐛 fix: 修复group节点的宽高 (#23)
Browse files Browse the repository at this point in the history
* 🐛 fix: readme

* 🐛 fix: readme

* ✨ feat: 新增group节点width,height

* 🐛 fix: 修复renderNode的width

---------

Co-authored-by: jiangchu <[email protected]>
  • Loading branch information
ModestFun and jiangchu authored Oct 24, 2023
1 parent e003288 commit e69b419
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ProFlow/helper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 ? (
Expand Down

0 comments on commit e69b419

Please sign in to comment.