From 649e9f9992c016b64cf71471868b400b8a76b1fc Mon Sep 17 00:00:00 2001 From: cp3hnu Date: Mon, 3 Mar 2025 14:12:23 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BF=AE=E6=94=B9=20ParameterSelect=20?= =?UTF-8?q?=E7=BB=84=E4=BB=B6=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- react-ui/src/components/ParameterSelect/index.tsx | 6 +++--- .../Experiment/components/ExperimentParameter/index.tsx | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/react-ui/src/components/ParameterSelect/index.tsx b/react-ui/src/components/ParameterSelect/index.tsx index 9b6389d8..04e6b87f 100644 --- a/react-ui/src/components/ParameterSelect/index.tsx +++ b/react-ui/src/components/ParameterSelect/index.tsx @@ -19,7 +19,7 @@ interface ParameterSelectProps extends SelectProps { /** 类型 */ dataType: 'dataset' | 'model' | 'service' | 'resource'; /** 是否只是展示信息 */ - isInfo?: boolean; + display?: boolean; /** 值 */ value?: string | ParameterSelectObject; /** 修改后回调 */ @@ -29,7 +29,7 @@ interface ParameterSelectProps extends SelectProps { /** 参数选择器,支持资源规格、数据集、模型、服务 */ function ParameterSelect({ dataType, - isInfo = false, + display = false, value, onChange, ...rest @@ -65,7 +65,7 @@ function ParameterSelect({ } }; - if (isInfo) { + if (display) { return ( {item.value.type === 'select' ? ( ['dataset', 'model', 'service', 'resource'].includes(item.value.item_type) ? ( - + ) : null ) : (