Commit 593b21c5 authored by chenshouchao's avatar chenshouchao

feat: 样式优化

parent f88989d3
...@@ -293,6 +293,17 @@ const QueueSelect = (props: IQueueSelectProps) => { ...@@ -293,6 +293,17 @@ const QueueSelect = (props: IQueueSelectProps) => {
</span> </span>
</div> </div>
} }
sx={{
zIndex: 1600,
// 让提示文案在弹窗下
"& .MuiDialog-container": {
"& .MuiPaper-root": {
// 设置最大宽度, 实际宽度让子元素撑大
maxWidth: "1920px",
borderRadius: "8px",
},
},
}}
> >
<div className={style.queueSelectContentBox}> <div className={style.queueSelectContentBox}>
<RadioGroupOfButtonStyle <RadioGroupOfButtonStyle
......
...@@ -5,13 +5,14 @@ import { ...@@ -5,13 +5,14 @@ import {
DialogActions, DialogActions,
DialogContent, DialogContent,
DialogTitle, DialogTitle,
DialogProps,
} from "@mui/material"; } from "@mui/material";
import CloseIcon from "@mui/icons-material/Close"; import CloseIcon from "@mui/icons-material/Close";
import { ThemeProvider, createTheme } from "@mui/material/styles"; import { ThemeProvider, createTheme } from "@mui/material/styles";
import MyButton from "./MyButton"; import MyButton from "./MyButton";
export interface IDialogProps { export interface IDialogProps extends DialogProps {
/** 自定义类名 */ /** 自定义类名 */
className?: string; className?: string;
/** 自定义样式 */ /** 自定义样式 */
...@@ -101,6 +102,7 @@ const MyDialog: React.FunctionComponent<IDialogProps> = (props) => { ...@@ -101,6 +102,7 @@ const MyDialog: React.FunctionComponent<IDialogProps> = (props) => {
okColor = "primary", okColor = "primary",
isText = false, isText = false,
leftSideOfButtonContent = null, leftSideOfButtonContent = null,
...other
} = props; } = props;
const handelClose = ( const handelClose = (
...@@ -184,6 +186,7 @@ const MyDialog: React.FunctionComponent<IDialogProps> = (props) => { ...@@ -184,6 +186,7 @@ const MyDialog: React.FunctionComponent<IDialogProps> = (props) => {
}, },
}, },
}} }}
{...other}
> >
{isHideHeader ? null : ( {isHideHeader ? null : (
<DialogTitle id="alert-dialog-title" sx={{ padding: "20px 24px" }}> <DialogTitle id="alert-dialog-title" sx={{ padding: "20px 24px" }}>
......
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