From 2c9d4c8dca0be81e912cd5b2798341e81a78c40f Mon Sep 17 00:00:00 2001 From: Joel Date: Tue, 26 Mar 2024 16:47:38 +0800 Subject: [PATCH] feat: value support hights --- .../key-value/key-value-edit/input-item.tsx | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/web/app/components/workflow/nodes/http/components/key-value/key-value-edit/input-item.tsx b/web/app/components/workflow/nodes/http/components/key-value/key-value-edit/input-item.tsx index 4e6f0f3faf..6c30a6e284 100644 --- a/web/app/components/workflow/nodes/http/components/key-value/key-value-edit/input-item.tsx +++ b/web/app/components/workflow/nodes/http/components/key-value/key-value-edit/input-item.tsx @@ -4,6 +4,8 @@ import React, { useCallback } from 'react' import { useBoolean } from 'ahooks' import cn from 'classnames' import RemoveButton from '@/app/components/workflow/nodes/_base/components/remove-button' +import SupportVarInput from '@/app/components/workflow/nodes/_base/components/support-var-input' + type Props = { className?: string value: string @@ -57,7 +59,15 @@ const InputItem: FC = ({ className="pl-0.5 w-full h-[18px] leading-[18px]" onClick={setIsEditTrue} > -
{hasValue ? value : placeholder}
+ {!hasValue &&
{placeholder}
} + {hasValue && ( + + )} {hasRemove && !isEdit && (