wwf
3 天以前 a430284aa21e3ae1f0d5654e55b2ad2852519cc2
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,7 +96,8 @@
          {inputs.extract_by?.enabled
            ? (
              <div className='flex items-center justify-between'>
                <div className='mr-2 grow'>
                {hasSubVariable && (
                  <div className='grow mr-2'>
                  <ExtractInput
                    value={inputs.extract_by.serial as string}
                    onChange={handleExtractsChange}
@@ -105,6 +105,7 @@
                    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)}