chore: var assigner output

This commit is contained in:
Joel 2024-03-19 18:19:07 +08:00
parent 49dd5b76f1
commit 0756b09cf5
3 changed files with 20 additions and 1 deletions

View File

@ -10,6 +10,8 @@ import AddButton from '@/app/components/base/button/add-button'
import { ChevronDown } from '@/app/components/base/icons/src/vender/line/arrows'
import type { NodePanelProps } from '@/app/components/workflow/types'
import { VarType } 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'
const i18nPrefix = 'workflow.nodes.variableAssigner'
const Panel: FC<NodePanelProps<VariableAssignerNodeType>> = ({
@ -73,7 +75,18 @@ const Panel: FC<NodePanelProps<VariableAssignerNodeType>> = ({
/>
</Field>
</div>
<Split />
<div className='px-4 pt-4 pb-2'>
<OutputVars>
<>
<VarItem
name='output'
type={inputs.output_type}
description={t(`${i18nPrefix}.outputVars.output`)}
/>
</>
</OutputVars>
</div>
</div>
)
}

View File

@ -258,6 +258,9 @@ const translation = {
object: 'Object',
array: 'Array',
},
outputVars: {
output: 'Assigned variable value',
},
},
tool: {
toAuthorize: 'To authorize',

View File

@ -258,6 +258,9 @@ const translation = {
object: 'Object',
array: 'Array',
},
outputVars: {
output: '指派的变量值',
},
},
tool: {
toAuthorize: '授权',