mirror of
https://github.com/langgenius/dify.git
synced 2026-05-03 08:58:09 +08:00
chore: sub variable trigger
This commit is contained in:
@ -6,7 +6,6 @@ import {
|
||||
import { useTranslation } from 'react-i18next'
|
||||
import { RiDeleteBinLine } from '@remixicon/react'
|
||||
import produce from 'immer'
|
||||
import { XMarkIcon } from '@heroicons/react/20/solid'
|
||||
import type { VarType as NumberVarType } from '../../../tool/types'
|
||||
import type {
|
||||
Condition,
|
||||
@ -170,12 +169,11 @@ const ConditionItem = ({
|
||||
onSelect={item => handleSubVarKeyChange(item.value as string)}
|
||||
renderTrigger={item => (
|
||||
item
|
||||
? <div className='flex items-center'>
|
||||
<div className='flex px-1.5 items-center h-6 rounded-md border-[0.5px] border-components-panel-border-subtle bg-components-badge-white-to-dark shadow-xs text-text-accent'>
|
||||
? <div className='flex justify-start cursor-pointer'>
|
||||
<div className='inline-flex px-1.5 items-center h-6 rounded-md border-[0.5px] border-components-panel-border-subtle bg-components-badge-white-to-dark shadow-xs text-text-accent'>
|
||||
<Variable02 className='w-3.5 h-3.5 text-text-accent' />
|
||||
<div className='ml-0.5 system-xs-medium'>{item?.name}</div>
|
||||
</div>
|
||||
<XMarkIcon className='ml-0.5 w-3.5 h-3.5 text-gray-400' onClick={() => handleSubVarKeyChange('')} />
|
||||
</div>
|
||||
: <div className='text-gray-300 system-xs-medium'>{t('common.placeholder.select')}</div>
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user