Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
B
bkunyun
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
bkunyun
Commits
593b21c5
Commit
593b21c5
authored
Oct 12, 2022
by
chenshouchao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 样式优化
parent
f88989d3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
1 deletion
+15
-1
index.tsx
src/components/BusinessComponents/QueueSelect/index.tsx
+11
-0
MyDialog.tsx
src/components/mui/MyDialog.tsx
+4
-1
No files found.
src/components/BusinessComponents/QueueSelect/index.tsx
View file @
593b21c5
...
...
@@ -293,6 +293,17 @@ const QueueSelect = (props: IQueueSelectProps) => {
</
span
>
</
div
>
}
sx=
{
{
zIndex
:
1600
,
// 让提示文案在弹窗下
"& .MuiDialog-container"
:
{
"& .MuiPaper-root"
:
{
// 设置最大宽度, 实际宽度让子元素撑大
maxWidth
:
"1920px"
,
borderRadius
:
"8px"
,
},
},
}
}
>
<
div
className=
{
style
.
queueSelectContentBox
}
>
<
RadioGroupOfButtonStyle
...
...
src/components/mui/MyDialog.tsx
View file @
593b21c5
...
...
@@ -5,13 +5,14 @@ import {
DialogActions
,
DialogContent
,
DialogTitle
,
DialogProps
,
}
from
"@mui/material"
;
import
CloseIcon
from
"@mui/icons-material/Close"
;
import
{
ThemeProvider
,
createTheme
}
from
"@mui/material/styles"
;
import
MyButton
from
"./MyButton"
;
export
interface
IDialogProps
{
export
interface
IDialogProps
extends
DialogProps
{
/** 自定义类名 */
className
?:
string
;
/** 自定义样式 */
...
...
@@ -101,6 +102,7 @@ const MyDialog: React.FunctionComponent<IDialogProps> = (props) => {
okColor
=
"primary"
,
isText
=
false
,
leftSideOfButtonContent
=
null
,
...
other
}
=
props
;
const
handelClose
=
(
...
...
@@ -184,6 +186,7 @@ const MyDialog: React.FunctionComponent<IDialogProps> = (props) => {
},
},
}
}
{
...
other
}
>
{
isHideHeader
?
null
:
(
<
DialogTitle
id=
"alert-dialog-title"
sx=
{
{
padding
:
"20px 24px"
}
}
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment