Commit 873bef37 authored by wuyongsheng's avatar wuyongsheng

feat: batch节点样式修改

parent 2c78102d
...@@ -270,18 +270,18 @@ const Flow = (props: IProps) => { ...@@ -270,18 +270,18 @@ const Flow = (props: IProps) => {
return a - b; return a - b;
}); });
const initialHeight = isFlowNode(value.id) ? 66 : 12; const initialHeight = isFlowNode(value.id) ? 66 : 12;
let width = 176, let minWidth = 176,
height = initialHeight height = initialHeight
if (positionXArr?.length) { if (positionXArr?.length) {
const val = positionXArr[positionXArr.length - 1] + 144; const val = positionXArr[positionXArr.length - 1] + 144;
width = val > 176 ? val : width; minWidth = val > 176 ? val : minWidth;
} }
if (positionYArr?.length) { if (positionYArr?.length) {
const val = positionYArr[positionYArr.length - 1] + 74; const val = positionYArr[positionYArr.length - 1] + 74;
height = val > initialHeight ? val : height; height = val > initialHeight ? val : height;
} }
return { return {
width, minWidth,
height, height,
}; };
}, },
......
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