Commit 7ea1f4d0 authored by chenshouchao's avatar chenshouchao

fix: MyCircularProgress组件逻辑修复

parent ff0421f5
......@@ -63,48 +63,48 @@ const MyCircularProgress = (props: IMyCircularProgressProps) => {
</div>
);
} else {
if (children) {
return children;
} else {
return (
return (
<div
style={{
width: "100%",
height: "100%",
position: "absolute",
top: 0,
zIndex: zIndex,
minHeight: minHeight,
}}
>
<div
style={{
width: "100%",
height: "100%",
position: "absolute",
top: 0,
zIndex: zIndex,
minHeight: minHeight,
opacity: 0.6,
background: "#fff",
}}
></div>
<div
style={{
width: "100%",
height: "100%",
display: "flex",
justifyContent: "center",
alignItems: "center",
maxHeight: maxHeight,
}}
>
<div
style={{
width: "100%",
height: "100%",
position: "absolute",
top: 0,
opacity: 0.6,
background: "#fff",
}}
></div>
<div
style={{
width: "100%",
height: "100%",
display: "flex",
justifyContent: "center",
alignItems: "center",
maxHeight: maxHeight,
}}
>
<CircularProgress></CircularProgress>
</div>
<CircularProgress></CircularProgress>
</div>
);
}
</div>
);
}
} else {
return null;
if (children) {
return children;
} else {
return null;
}
}
};
......
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