diff --git a/web/app/components/app/configuration/config-var/config-modal/index.tsx b/web/app/components/app/configuration/config-var/config-modal/index.tsx index 3a1cc7bf21..43d35ccfb1 100644 --- a/web/app/components/app/configuration/config-var/config-modal/index.tsx +++ b/web/app/components/app/configuration/config-var/config-modal/index.tsx @@ -147,7 +147,6 @@ const ConfigModal: FC = ({ handlePayloadChange('variable')(e.target.value)} onBlur={handleVarKeyBlur} @@ -156,7 +155,6 @@ const ConfigModal: FC = ({ handlePayloadChange('label')(e.target.value)} placeholder={t('appDebug.variableConig.inputPlaceholder')!} diff --git a/web/app/components/app/configuration/config-var/config-string/index.tsx b/web/app/components/app/configuration/config-var/config-string/index.tsx index e8c5854ae1..719ad8ee13 100644 --- a/web/app/components/app/configuration/config-var/config-string/index.tsx +++ b/web/app/components/app/configuration/config-var/config-string/index.tsx @@ -37,7 +37,6 @@ const ConfigString: FC = ({ onChange(value) }} - className='h-9' /> ) diff --git a/web/app/components/workflow/nodes/_base/components/variable/output-var-list.tsx b/web/app/components/workflow/nodes/_base/components/variable/output-var-list.tsx index 98bbafbd79..1c07461b42 100644 --- a/web/app/components/workflow/nodes/_base/components/variable/output-var-list.tsx +++ b/web/app/components/workflow/nodes/_base/components/variable/output-var-list.tsx @@ -6,6 +6,7 @@ import { useTranslation } from 'react-i18next' import type { OutputVar } from '../../../code/types' import RemoveButton from '../remove-button' import VarTypePicker from './var-type-picker' +import Input from '@/app/components/base/input' import type { VarType } from '@/app/components/workflow/types' import { checkKeys } from '@/utils/var' import Toast from '@/app/components/base/toast' @@ -85,12 +86,12 @@ const OutputVarList: FC = ({
{list.map((item, index) => (
- + wrapperClassName='grow' + /> = ({
{list.map((item, index) => (
- = ({ } }) - const [isFocus, { - setFalse: setBlur, - setTrue: setFocus, - }] = useBoolean(false) return ( <> { !hideSearch && ( <> -
e.stopPropagation()} - > - - - e.stopPropagation()}> + setSearchText(e.target.value)} - onFocus={setFocus} - onBlur={setBlur} + onClear={() => setSearchText('')} autoFocus /> - { - searchText && ( -
setSearchText('')} - > - -
- ) - }
= ({
-
- - + setSearchText(e.target.value)} + onClear={() => setSearchText('')} autoFocus /> - { - searchText && ( -
setSearchText('')} - > - -
- ) - }
{available_dependencies.filter((v) => { diff --git a/web/app/components/workflow/nodes/http/components/authorization/index.tsx b/web/app/components/workflow/nodes/http/components/authorization/index.tsx index 4710c98883..7110188dbe 100644 --- a/web/app/components/workflow/nodes/http/components/authorization/index.tsx +++ b/web/app/components/workflow/nodes/http/components/authorization/index.tsx @@ -12,6 +12,7 @@ import type { Var } from '@/app/components/workflow/types' import Modal from '@/app/components/base/modal' import Button from '@/app/components/base/button' import Input from '@/app/components/workflow/nodes/_base/components/input-support-select-var' +import BaseInput from '@/app/components/base/input' import cn from '@/utils/classnames' const i18nPrefix = 'workflow.nodes.http.authorization' @@ -146,9 +147,7 @@ const Authorization: FC = ({ {tempPayload.config?.type === APIType.custom && ( - diff --git a/web/app/components/workflow/nodes/http/components/timeout/index.tsx b/web/app/components/workflow/nodes/http/components/timeout/index.tsx index 8837f262d8..976f61d444 100644 --- a/web/app/components/workflow/nodes/http/components/timeout/index.tsx +++ b/web/app/components/workflow/nodes/http/components/timeout/index.tsx @@ -5,6 +5,7 @@ import { useTranslation } from 'react-i18next' import { useBoolean } from 'ahooks' import type { Timeout as TimeoutPayloadType } from '../../types' import cn from '@/utils/classnames' +import Input from '@/app/components/base/input' import { ChevronRight } from '@/app/components/base/icons/src/vender/line/arrows' type Props = { @@ -32,10 +33,18 @@ const InputField: FC<{ {title} {description}
- { - const value = Math.max(min, Math.min(max, parseInt(e.target.value, 10))) - onChange(value) - }} placeholder={placeholder} type='number' readOnly={readOnly} min={min} max={max} /> + { + const value = Math.max(min, Math.min(max, parseInt(e.target.value, 10))) + onChange(value) + }} + placeholder={placeholder} + readOnly={readOnly} + min={min} + max={max} + />
) } diff --git a/web/app/components/workflow/nodes/parameter-extractor/components/extract-parameter/update.tsx b/web/app/components/workflow/nodes/parameter-extractor/components/extract-parameter/update.tsx index 472558264d..113474eb24 100644 --- a/web/app/components/workflow/nodes/parameter-extractor/components/extract-parameter/update.tsx +++ b/web/app/components/workflow/nodes/parameter-extractor/components/extract-parameter/update.tsx @@ -9,6 +9,7 @@ import AddButton from '@/app/components/base/button/add-button' import Modal from '@/app/components/base/modal' import Button from '@/app/components/base/button' import Field from '@/app/components/app/configuration/config-var/config-modal/field' +import Input from '@/app/components/base/input' import Textarea from '@/app/components/base/textarea' import Select from '@/app/components/base/select' import Switch from '@/app/components/base/switch' @@ -19,7 +20,6 @@ import { checkKeys } from '@/utils/var' const i18nPrefix = 'workflow.nodes.parameterExtractor' const errorI18nPrefix = 'workflow.errorMsg' -const inputClassName = 'w-full px-3 text-sm leading-9 text-gray-900 border-0 rounded-lg grow h-9 bg-gray-100 focus:outline-none focus:ring-1 focus:ring-inset focus:ring-gray-200' const DEFAULT_PARAM: Param = { name: '', @@ -136,9 +136,7 @@ const AddExtractParameter: FC = ({
- handleParamChange('name')(e.target.value)} placeholder={t(`${i18nPrefix}.addExtractParameterContent.namePlaceholder`)!}