From 77950e48c76f4a3b29d01831d43039caba29888a Mon Sep 17 00:00:00 2001
From: wwf <1971391498@qq.com>
Date: 星期二, 18 十一月 2025 14:12:42 +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