+
+
diff --git a/src/views/flow/vue-flow/FlowNode.vue b/src/views/flow/vue-flow/FlowNode.vue
index cc73569..3006758 100644
--- a/src/views/flow/vue-flow/FlowNode.vue
+++ b/src/views/flow/vue-flow/FlowNode.vue
@@ -16,7 +16,7 @@
:is-valid-connection="isValidLoopConnection"
class="flow-handle flow-handle--target"
/>
-
+
{
return true;
});
});
+
const model = computed(() => window.lf?.getNodeModelById(props.id));
/**
@@ -375,4 +376,5 @@ onMounted(() => bindComponent(componentRef.value));
&--branch:hover { transform: translate(50%, -50%) scale(1.18); }
}
+
diff --git a/src/views/flow/vue-flow/adapter.js b/src/views/flow/vue-flow/adapter.js
index 9b6f9e0..68aaa69 100644
--- a/src/views/flow/vue-flow/adapter.js
+++ b/src/views/flow/vue-flow/adapter.js
@@ -50,12 +50,13 @@ const groupChildExtent = () => ({
* @param {*} node 当前流程节点
*/
const nodeSize = (node) => {
+ // 分支节点采用统一的标准卡片尺寸,忽略旧流程数据中遗留的大尺寸记录。
+ if (node.type === "branch") return { width: 372, height: 180 };
const width = Number(node.properties?.width || node.width);
const height = Number(node.properties?.height || node.height);
if (Number.isFinite(width) && Number.isFinite(height)) {
return { width, height };
}
- if (node.type === "branch") return { width: 748, height: 420 };
if (GROUP_TYPES.has(node.type)) return { width: 720, height: 460 };
if (TARGET_ONLY_TYPES.has(node.type) || SOURCE_ONLY_TYPES.has(node.type)) {
return { width: 328, height: 120 };