From e2a5480bf904938fd54920d0f5d50c9fbe148d2b Mon Sep 17 00:00:00 2001 From: 2910410219 <2910410219@qq.com> Date: Thu, 20 Aug 2026 14:01:38 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B7=A5=E4=BD=9C=E6=B5=81=E8=8A=82=E7=82=B9?= =?UTF-8?q?=E5=BA=93=20patchLayout=20=E9=A9=B1=E5=8A=A8=E8=B4=B4=E7=89=87?= =?UTF-8?q?=E5=B8=83=E5=B1=80=E5=BC=80=E5=85=B3=E6=98=BE=E7=A4=BA=EF=BC=88?= =?UTF-8?q?=E5=AF=B9=E9=BD=90=E5=86=85=E5=AE=B9=E5=88=9B=E4=BD=9C=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - NodeLibraryItem 增加 patchLayout 字段(节点库返回,仅 model 节点 true) - nodeConfigMap 聚合透传节点库 patchLayout,开关显示条件由 modelType 范围改为 nodeConfig.patchLayout - 移除不再使用的 isVideoModelSelected 判断 Co-Authored-By: Claude --- src/api/settings/workflow/index.ts | 2 ++ src/views/settings/workflow/component/NodeConfigPanel.vue | 8 ++------ src/views/settings/workflow/index.vue | 2 ++ 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/api/settings/workflow/index.ts b/src/api/settings/workflow/index.ts index 70e1b9a..2d48f0e 100644 --- a/src/api/settings/workflow/index.ts +++ b/src/api/settings/workflow/index.ts @@ -39,6 +39,8 @@ export interface NodeLibraryItem { // 节点自带输出项([{ field, label }]):空/null 表示无输出;非空时该节点可作为下游节点的引用来源 outputField?: { field: string; label: string }[] | null; presetOption: NodeLibraryPresetOption[] | null; + // 是否支持贴片布局(节点库返回,仅 model 节点 true):控制节点配置面板「贴片布局」开关显示 + patchLayout?: boolean; } export interface NodeLibraryGroup { diff --git a/src/views/settings/workflow/component/NodeConfigPanel.vue b/src/views/settings/workflow/component/NodeConfigPanel.vue index 0815ab9..2ae4b65 100644 --- a/src/views/settings/workflow/component/NodeConfigPanel.vue +++ b/src/views/settings/workflow/component/NodeConfigPanel.vue @@ -77,7 +77,7 @@ - + (); -const isVideoModelSelected = computed(() => { - const t = Number(props.selectedNode?.data?.modelConfig?.modelType); - return t >= 600 && t <= 605; -}); - // 开始节点不展示节点描述 const isStartNode = computed(() => props.selectedNode?.data?.nodeCode === '__start__'); diff --git a/src/views/settings/workflow/index.vue b/src/views/settings/workflow/index.vue index 00264ae..18daa02 100644 --- a/src/views/settings/workflow/index.vue +++ b/src/views/settings/workflow/index.vue @@ -217,6 +217,7 @@ const nodeConfigMap = computed(() => { isSaveFileOption: boolean; // 节点自带输出项(节点库 outputField):非空时该节点可作为下游引用来源 outputField: any[]; + patchLayout: boolean; } >(); nodeLibraryGroups.value.forEach((group) => { @@ -235,6 +236,7 @@ const nodeConfigMap = computed(() => { isSaveFileOption: item.isSaveFileOption || false, // 节点自带输出项:可被其它节点引用的字段(脚本转写等节点提供;空表示无输出) outputField: item.outputField || [], + patchLayout: item.patchLayout || false, }); }); });