Commit 68ab5453 authored by chenshouchao's avatar chenshouchao

feat: 样式优化

parent 5a5f9d7c
......@@ -154,6 +154,7 @@ export default function MySelect(props: IProps) {
MuiInputLabel: {
styleOverrides: {
root: {
fontSize: "14px",
// 下拉框未选择时的label定位
top: "-9px",
},
......@@ -180,6 +181,14 @@ export default function MySelect(props: IProps) {
},
},
},
// MuiFormControl: {
// styleOverrides: {
// root: {
// width: fullWidth ? "100%" : "auto",
// },
// },
// },
},
});
......
......@@ -130,13 +130,12 @@
word-break: break-all;
flex: 1;
justify-content: flex-end;
overflow: hidden;
word-wrap: break-word;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
}
.taskInfoValueClick {
cursor: pointer;
......@@ -151,6 +150,8 @@
}
.taskInfoValueIcon {
margin-right: 9px;
position: relative;
top: 3px;
}
.tabs {
display: flex;
......
......@@ -300,6 +300,7 @@ const ParameterSetting = (props: IParameterSettingProps) => {
helpertext={parameter.helperText}
options={parameter?.choices || []}
disabled={parameter.parameterGroup === "out"}
fullWidth={true}
></MySelect>
)}
{(parameter.domType || "").toLowerCase() === "multipleselect" && (
......@@ -320,6 +321,7 @@ const ParameterSetting = (props: IParameterSettingProps) => {
helpertext={parameter.helperText}
options={parameter?.choices || []}
disabled={parameter.parameterGroup === "out"}
fullWidth={true}
></MySelect>
)}
{(parameter.domType || "").toLowerCase() === "radio" && (
......@@ -510,7 +512,12 @@ const ParameterSetting = (props: IParameterSettingProps) => {
} else {
setActiveParamsTab(""); // 会报错 不过不会有蓝色长条
}
}, [basisParameters, seniorParameters, hardwareParameters]);
}, [
taskId,
basisParameters.length,
seniorParameters.length,
hardwareParameters.length,
]);
return (
<div className={styles.parameterSetting}>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment