From a430284aa21e3ae1f0d5654e55b2ad2852519cc2 Mon Sep 17 00:00:00 2001 From: wwf <yearningwang@iqtogether.com> Date: 星期三, 04 六月 2025 15:17:49 +0800 Subject: [PATCH] 初始化 --- app/components/workflow/nodes/if-else/components/condition-value.tsx | 16 ++++++++-------- 1 files changed, 8 insertions(+), 8 deletions(-) diff --git a/app/components/workflow/nodes/if-else/components/condition-value.tsx b/app/components/workflow/nodes/if-else/components/condition-value.tsx index 53dac65..e997c2c 100644 --- a/app/components/workflow/nodes/if-else/components/condition-value.tsx +++ b/app/components/workflow/nodes/if-else/components/condition-value.tsx @@ -9,7 +9,7 @@ comparisonOperatorNotRequireValue, isComparisonOperatorNeedTranslate, } from '../utils' -import { FILE_TYPE_OPTIONS, TRANSFER_METHOD } from '../../constants' +import { FILE_TYPE_OPTIONS, TRANSFER_METHOD } from '../default' import { Variable02 } from '@/app/components/base/icons/src/vender/solid/development' import { BubbleX, Env } from '@/app/components/base/icons/src/vender/line/others' import cn from '@/utils/classnames' @@ -75,14 +75,14 @@ }, [isSelect, t, value]) return ( - <div className='flex h-6 items-center rounded-md bg-workflow-block-parma-bg px-1'> - {!isEnvVar && !isChatVar && <Variable02 className={cn('mr-1 h-3.5 w-3.5 shrink-0 text-text-accent', isException && 'text-text-warning')} />} - {isEnvVar && <Env className='mr-1 h-3.5 w-3.5 shrink-0 text-util-colors-violet-violet-600' />} - {isChatVar && <BubbleX className='h-3.5 w-3.5 shrink-0 text-util-colors-teal-teal-700' />} + <div className='flex items-center px-1 h-6 rounded-md bg-workflow-block-parma-bg'> + {!isEnvVar && !isChatVar && <Variable02 className={cn('shrink-0 mr-1 w-3.5 h-3.5 text-text-accent', isException && 'text-text-warning')} />} + {isEnvVar && <Env className='shrink-0 mr-1 w-3.5 h-3.5 text-util-colors-violet-violet-600' />} + {isChatVar && <BubbleX className='w-3.5 h-3.5 text-util-colors-teal-teal-700' />} <div className={cn( - 'ml-0.5 shrink-[2] truncate text-xs font-medium text-text-accent', + 'shrink-0 ml-0.5 truncate text-xs font-medium text-text-accent', !notHasValue && 'max-w-[70px]', isException && 'text-text-warning', )} @@ -91,14 +91,14 @@ {variableName} </div> <div - className='mx-1 shrink-0 text-xs font-medium text-text-primary' + className='shrink-0 mx-1 text-xs font-medium text-text-primary' title={operatorName} > {operatorName} </div> { !notHasValue && ( - <div className='shrink-[3] truncate text-xs text-text-secondary' title={formatValue}>{isSelect ? selectName : formatValue}</div> + <div className='truncate text-xs text-text-secondary' title={formatValue}>{isSelect ? selectName : formatValue}</div> ) } </div> -- Gitblit v1.8.0