diff --git a/web/app/components/workflow/nodes/_base/components/output-vars.tsx b/web/app/components/workflow/nodes/_base/components/output-vars.tsx index 1fa0cd4e91..453dfebcc7 100644 --- a/web/app/components/workflow/nodes/_base/components/output-vars.tsx +++ b/web/app/components/workflow/nodes/_base/components/output-vars.tsx @@ -3,6 +3,8 @@ import type { FC } from 'react' import React from 'react' import { useTranslation } from 'react-i18next' import cn from 'classnames' +import { useBoolean } from 'ahooks' +import { ChevronRight } from '@/app/components/base/icons/src/vender/line/arrows' type Props = { className?: string @@ -16,15 +18,22 @@ const OutputVars: FC = ({ children, }) => { const { t } = useTranslation() - + const [isFold, { + toggle: toggleFold, + }] = useBoolean(true) return (
-
- {title || t('workflow.nodes.common.outputVars')} -
-
- {children} +
+
{title || t('workflow.nodes.common.outputVars')}
+
+ {!isFold && ( +
+ {children} +
+ )}
) } diff --git a/web/app/components/workflow/nodes/_base/components/split.tsx b/web/app/components/workflow/nodes/_base/components/split.tsx index d5b3b0079a..0363f6c23a 100644 --- a/web/app/components/workflow/nodes/_base/components/split.tsx +++ b/web/app/components/workflow/nodes/_base/components/split.tsx @@ -11,7 +11,7 @@ const Split: FC = ({ className, }) => { return ( -
+
) } diff --git a/web/app/components/workflow/nodes/llm/panel.tsx b/web/app/components/workflow/nodes/llm/panel.tsx index 161d64b682..c8df52bc73 100644 --- a/web/app/components/workflow/nodes/llm/panel.tsx +++ b/web/app/components/workflow/nodes/llm/panel.tsx @@ -178,7 +178,7 @@ const Panel: FC> = ({ /> )} - {/* Memory examples. Wait for design */} + {/* Memory put place examples. Wait for design */} {/* {isChatModel && (
Memory examples(Designing)
)} */} @@ -191,24 +191,27 @@ const Panel: FC> = ({ onChange={handleMemoryChange} canSetRoleName={isCompletionModel} /> - )} {/* Vision: GPT4-vision and so on */} {isShowVisionConfig && ( - - } - /> + <> + + + } + /> + )}
+
<>