| | |
| | | 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' |
| | |
| | | |
| | | 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 |
| | |
| | | {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 |