-
-
-
+ {basicParametersList.length + controlStrategyList.length > 0 && (
+
+
+
+ )}
{/* 基本参数 */}
{basicParametersList.map((item) => (
@@ -663,6 +665,7 @@ const PipelineNodeParameter = forwardRef(({ onFormChange }: PipelineNodeParamete
))}
>
)}
+
{/* 输出参数 */}
{outParametersList.length > 0 && (
<>
diff --git a/react-ui/src/types.ts b/react-ui/src/types.ts
index 61081b39..23f34d7b 100644
--- a/react-ui/src/types.ts
+++ b/react-ui/src/types.ts
@@ -29,11 +29,17 @@ export type GlobalInitialState = {
clientInfo?: ClientInfo;
};
+export enum PipelineGlobalParamType {
+ String = 1,
+ Number = 2,
+ Boolean = 3,
+}
+
// 流水线全局参数
export type PipelineGlobalParam = {
param_name: string;
description: string;
- param_type: number;
+ param_type: PipelineGlobalParamType;
param_value: number | string | boolean;
is_sensitive: number;
};