fix: var input label missing icon (#34569)

This commit is contained in:
非法操作 2026-04-07 17:33:13 +08:00 committed by GitHub
parent 75ed38fb3d
commit 63b1d0c1ea
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -12,6 +12,7 @@ import AddButton from '@/app/components/base/button/add-button'
import { Line3 } from '@/app/components/base/icons/src/public/common'
import { Variable02 } from '@/app/components/base/icons/src/vender/solid/development'
import { Tooltip, TooltipContent, TooltipTrigger } from '@/app/components/base/ui/tooltip'
import { VarBlockIcon } from '@/app/components/workflow/block-icon'
import TypeSelector from '@/app/components/workflow/nodes/_base/components/selector'
import { VariableIconWithColor } from '@/app/components/workflow/nodes/_base/components/variable/variable-label'
import { cn } from '@/utils/classnames'
@ -205,7 +206,10 @@ const VarReferencePickerTrigger: FC<Props> = ({
>
<div className="h-3 px-px">
{'type' in (outputVarNode || {}) && outputVarNode?.type && (
<div className="h-3 w-3" />
<VarBlockIcon
type={outputVarNode.type}
className="text-text-primary"
/>
)}
</div>
<div