Commit 07afa5bb authored by chenshouchao's avatar chenshouchao

Merge branch 'feat-20220801' into 'release'

cn-Feat 20220801

See merge request !91
parents 621af1fc 68ab5453
...@@ -154,6 +154,7 @@ export default function MySelect(props: IProps) { ...@@ -154,6 +154,7 @@ export default function MySelect(props: IProps) {
MuiInputLabel: { MuiInputLabel: {
styleOverrides: { styleOverrides: {
root: { root: {
fontSize: "14px",
// 下拉框未选择时的label定位 // 下拉框未选择时的label定位
top: "-9px", top: "-9px",
}, },
...@@ -180,6 +181,14 @@ export default function MySelect(props: IProps) { ...@@ -180,6 +181,14 @@ export default function MySelect(props: IProps) {
}, },
}, },
}, },
// MuiFormControl: {
// styleOverrides: {
// root: {
// width: fullWidth ? "100%" : "auto",
// },
// },
// },
}, },
}); });
......
...@@ -36,21 +36,22 @@ ...@@ -36,21 +36,22 @@
.logTitle { .logTitle {
display: flex; display: flex;
width: 0; /* width: 0; */
max-width: 200px; /* max-width: 200px; */
overflow: hidden; overflow: hidden;
white-space: nowrap; white-space: nowrap;
text-overflow:ellipsis; text-overflow: ellipsis;
flex: 1; /* flex: 1; */
align-items: center; align-items: center;
height: 30px; height: 32px;
line-height: 20px; line-height: 20px;
padding: 0 24px; padding: 0 32px;
cursor: pointer; cursor: pointer;
border-right: 1px solid #10141A; border-right: 1px solid #10141A;
} }
.logTitleSelected { .logTitleSelected {
flex-shrink: 0;
background: #282c34; background: #282c34;
color: #ffffff; color: #ffffff;
} }
...@@ -78,7 +79,7 @@ ...@@ -78,7 +79,7 @@
width: calc(100vw - 64px); width: calc(100vw - 64px);
background-color: #282c34; background-color: #282c34;
position: absolute; position: absolute;
top: 30px; top: 32px;
left: 32px; left: 32px;
z-index: 1005; z-index: 1005;
} }
......
...@@ -130,7 +130,6 @@ ...@@ -130,7 +130,6 @@
word-break: break-all; word-break: break-all;
flex: 1; flex: 1;
justify-content: flex-end; justify-content: flex-end;
overflow: hidden; overflow: hidden;
word-wrap: break-word; word-wrap: break-word;
text-overflow: ellipsis; text-overflow: ellipsis;
...@@ -151,6 +150,8 @@ ...@@ -151,6 +150,8 @@
} }
.taskInfoValueIcon { .taskInfoValueIcon {
margin-right: 9px; margin-right: 9px;
position: relative;
top: 3px;
} }
.tabs { .tabs {
display: flex; display: flex;
......
...@@ -127,7 +127,9 @@ ...@@ -127,7 +127,9 @@
align-items: center; align-items: center;
color: #1e2633; color: #1e2633;
cursor: pointer; cursor: pointer;
height: 30px; height: 31px;
display: flex;
align-items: center;
overflow: hidden; overflow: hidden;
white-space: nowrap; white-space: nowrap;
text-overflow: ellipsis; text-overflow: ellipsis;
......
...@@ -4,12 +4,18 @@ ...@@ -4,12 +4,18 @@
cursor: grab; cursor: grab;
padding: 16px 16px 0 24px; padding: 16px 16px 0 24px;
background-color: #fff; background-color: #fff;
transition: width 0.2s;
-webkit-transition: width 0.2s; /* Safari */
} }
.operatorItemBox:hover { .operatorItemBox:hover {
box-shadow: 0px 5px 16px 0px rgba(0, 24, 57, 0.1); box-shadow: 0px 5px 16px 0px rgba(0, 24, 57, 0.1);
position: relative; position: relative;
top: -1px; top: -1px;
} }
.operatorItemBox .footerBox {
transition: width 0.2s;
-webkit-transition: width 0.2s; /* Safari */
}
.operatorItemBox:hover .footerBox { .operatorItemBox:hover .footerBox {
border-bottom: 1px solid #fff; border-bottom: 1px solid #fff;
} }
......
...@@ -300,6 +300,7 @@ const ParameterSetting = (props: IParameterSettingProps) => { ...@@ -300,6 +300,7 @@ const ParameterSetting = (props: IParameterSettingProps) => {
helpertext={parameter.helperText} helpertext={parameter.helperText}
options={parameter?.choices || []} options={parameter?.choices || []}
disabled={parameter.parameterGroup === "out"} disabled={parameter.parameterGroup === "out"}
fullWidth={true}
></MySelect> ></MySelect>
)} )}
{(parameter.domType || "").toLowerCase() === "multipleselect" && ( {(parameter.domType || "").toLowerCase() === "multipleselect" && (
...@@ -320,6 +321,7 @@ const ParameterSetting = (props: IParameterSettingProps) => { ...@@ -320,6 +321,7 @@ const ParameterSetting = (props: IParameterSettingProps) => {
helpertext={parameter.helperText} helpertext={parameter.helperText}
options={parameter?.choices || []} options={parameter?.choices || []}
disabled={parameter.parameterGroup === "out"} disabled={parameter.parameterGroup === "out"}
fullWidth={true}
></MySelect> ></MySelect>
)} )}
{(parameter.domType || "").toLowerCase() === "radio" && ( {(parameter.domType || "").toLowerCase() === "radio" && (
...@@ -510,7 +512,12 @@ const ParameterSetting = (props: IParameterSettingProps) => { ...@@ -510,7 +512,12 @@ const ParameterSetting = (props: IParameterSettingProps) => {
} else { } else {
setActiveParamsTab(""); // 会报错 不过不会有蓝色长条 setActiveParamsTab(""); // 会报错 不过不会有蓝色长条
} }
}, [basisParameters, seniorParameters, hardwareParameters]); }, [
taskId,
basisParameters.length,
seniorParameters.length,
hardwareParameters.length,
]);
return ( return (
<div className={styles.parameterSetting}> <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