From 77950e48c76f4a3b29d01831d43039caba29888a Mon Sep 17 00:00:00 2001
From: wwf <1971391498@qq.com>
Date: 星期二, 18 十一月 2025 14:12:42 +0800
Subject: [PATCH] 修改
---
app/components/workflow/nodes/variable-assigner/panel.tsx | 34 ++++++++++++++++++----------------
1 files changed, 18 insertions(+), 16 deletions(-)
diff --git a/app/components/workflow/nodes/variable-assigner/panel.tsx b/app/components/workflow/nodes/variable-assigner/panel.tsx
index 67ec102..6152e0f 100644
--- a/app/components/workflow/nodes/variable-assigner/panel.tsx
+++ b/app/components/workflow/nodes/variable-assigner/panel.tsx
@@ -7,7 +7,7 @@
import type { VariableAssignerNodeType } from './types'
import VarGroupItem from './components/var-group-item'
import cn from '@/utils/classnames'
-import type { NodePanelProps } from '@/app/components/workflow/types'
+import { type NodePanelProps } from '@/app/components/workflow/types'
import Split from '@/app/components/workflow/nodes/_base/components/split'
import OutputVars, { VarItem } from '@/app/components/workflow/nodes/_base/components/output-vars'
import Switch from '@/app/components/base/switch'
@@ -39,7 +39,7 @@
return (
<div className='mt-2'>
- <div className='space-y-4 px-4 pb-4'>
+ <div className='px-4 pb-4 space-y-4'>
{!isEnableGroup
? (
<VarGroupItem
@@ -99,20 +99,22 @@
{isEnableGroup && (
<>
<Split />
- <OutputVars>
- <>
- {inputs.advanced_settings?.groups.map((item, index) => (
- <VarItem
- key={index}
- name={`${item.group_name}.output`}
- type={item.output_type}
- description={t(`${i18nPrefix}.outputVars.varDescribe`, {
- groupName: item.group_name,
- })}
- />
- ))}
- </>
- </OutputVars>
+ <div className='px-4 pt-4 pb-2'>
+ <OutputVars>
+ <>
+ {inputs.advanced_settings?.groups.map((item, index) => (
+ <VarItem
+ key={index}
+ name={`${item.group_name}.output`}
+ type={item.output_type}
+ description={t(`${i18nPrefix}.outputVars.varDescribe`, {
+ groupName: item.group_name,
+ })}
+ />
+ ))}
+ </>
+ </OutputVars>
+ </div>
</>
)}
<RemoveEffectVarConfirm
--
Gitblit v1.8.0