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/list-operator/panel.tsx | 27 ++++++++++++++------------- 1 files changed, 14 insertions(+), 13 deletions(-) diff --git a/app/components/workflow/nodes/list-operator/panel.tsx b/app/components/workflow/nodes/list-operator/panel.tsx index d93a793..3075c1d 100644 --- a/app/components/workflow/nodes/list-operator/panel.tsx +++ b/app/components/workflow/nodes/list-operator/panel.tsx @@ -11,7 +11,7 @@ import LimitConfig from './components/limit-config' import FilterCondition from './components/filter-condition' import Field from '@/app/components/workflow/nodes/_base/components/field' -import type { NodePanelProps } from '@/app/components/workflow/types' +import { type NodePanelProps } from '@/app/components/workflow/types' import Switch from '@/app/components/base/switch' import ExtractInput from '@/app/components/workflow/nodes/list-operator/components/extract-input' @@ -43,10 +43,9 @@ return ( <div className='pt-2'> - <div className='space-y-4 px-4'> + <div className='px-4 space-y-4'> <Field title={t(`${i18nPrefix}.inputVar`)} - required > <VarReferencePicker readonly={readOnly} @@ -97,14 +96,16 @@ {inputs.extract_by?.enabled ? ( <div className='flex items-center justify-between'> - <div className='mr-2 grow'> - <ExtractInput - value={inputs.extract_by.serial as string} - onChange={handleExtractsChange} - readOnly={readOnly} - nodeId={id} - /> - </div> + {hasSubVariable && ( + <div className='grow mr-2'> + <ExtractInput + value={inputs.extract_by.serial as string} + onChange={handleExtractsChange} + readOnly={readOnly} + nodeId={id} + /> + </div> + )} </div> ) : null} @@ -131,14 +132,14 @@ ? ( <div className='flex items-center justify-between'> {hasSubVariable && ( - <div className='mr-2 grow'> + <div className='grow mr-2'> <SubVariablePicker value={inputs.order_by.key as string} onChange={handleOrderByKeyChange} /> </div> )} - <div className={!hasSubVariable ? 'grid w-full grid-cols-2 gap-1' : 'flex shrink-0 space-x-1'}> + <div className={!hasSubVariable ? 'w-full grid grid-cols-2 gap-1' : 'shrink-0 flex space-x-1'}> <OptionCard title={t(`${i18nPrefix}.asc`)} onSelect={handleOrderByTypeChange(OrderBy.ASC)} -- Gitblit v1.8.0