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
7f6227f3
Commit
7f6227f3
authored
Aug 08, 2022
by
jiangzijing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:ui优化
parent
b987650c
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
13 additions
and
7 deletions
+13
-7
MyDialog.tsx
src/components/mui/MyDialog.tsx
+7
-3
MyPopconfirm.tsx
src/components/mui/MyPopconfirm.tsx
+2
-1
index.tsx
src/views/MenuLayout/index.tsx
+2
-2
index.tsx
...iews/WorkFlowEdit/components/SaveCustomTemplate/index.tsx
+1
-1
index.tsx
src/views/WorkFlowEdit/index.tsx
+1
-0
No files found.
src/components/mui/MyDialog.tsx
View file @
7f6227f3
...
...
@@ -122,12 +122,16 @@ const MyDialog: React.FunctionComponent<IDialogProps> = (props) => {
"& .MuiPaper-root"
:
{
// 设置最大宽度, 实际宽度让子元素撑大
maxWidth
:
"1920px"
,
borderRadius
:
"8px"
},
},
}
}
>
{
isHideHeader
?
null
:
(
<
DialogTitle
id=
"alert-dialog-title"
>
<
DialogTitle
id=
"alert-dialog-title"
sx=
{
{
padding
:
"20px 24px"
}
}
>
<
div
style=
{
{
display
:
"flex"
,
...
...
@@ -136,10 +140,10 @@ const MyDialog: React.FunctionComponent<IDialogProps> = (props) => {
fontWeight
:
600
,
}
}
>
<
span
style=
{
{
fontSize
:
16
,
lineHeight
:
'24px'
,
color
:
'#1E2633'
}
}
>
{
title
}
</
span
>
<
span
style=
{
{
fontSize
:
16
,
lineHeight
:
'24px'
,
color
:
'#1E2633'
}
}
>
{
title
}
</
span
>
<
CloseIcon
onClick=
{
onClose
}
sx=
{
{
color
:
"#C2C6CC"
,
cursor
:
"pointer"
,
":hover"
:
{
background
:
"#f0f2f5"
,
borderRadius
:
'2px'
}
}
}
sx=
{
{
color
:
"#C2C6CC"
,
cursor
:
"pointer"
,
":hover"
:
{
background
:
"#f0f2f5"
,
borderRadius
:
'2px'
}
}
}
/>
</
div
>
</
DialogTitle
>
...
...
src/components/mui/MyPopconfirm.tsx
View file @
7f6227f3
...
...
@@ -68,7 +68,8 @@ const MyPopconfirm = (props: IMyPopconfirmProps) => {
zIndex
:
2000
,
bgcolor
:
"#fff"
,
minWidth
:
"200px"
,
borderRadius
:
"2px"
,
borderRadius
:
"4px"
,
fontSize
:
"14px"
,
padding
:
"20px 16px"
,
boxShadow
:
"0px 3px 10px 0px rgba(0, 24, 57, 0.14)"
,
}
}
...
...
src/views/MenuLayout/index.tsx
View file @
7f6227f3
...
...
@@ -41,7 +41,7 @@ const MenuLayout = observer(() => {
return
(
<
Box
className=
{
style
.
container
}
>
<
Box
className=
{
style
.
aside
}
>
{
{
pathname
.
indexOf
(
'userCenter'
)
<
0
&&
<
CurrentProject
/>
}
<
List
...
...
@@ -62,7 +62,7 @@ const MenuLayout = observer(() => {
onClick=
{
()
=>
item
.
type
===
"page"
&&
navigate
(
item
.
path
)
}
>
<
img
className=
{
style
.
routerIcon
}
src=
{
routerIcon
(
item
.
id
||
''
,
`/v3${item.path}`
===
pathname
)
||
undefined
}
alt=
''
/>
<
span
style=
{
{
verticalAlign
:
'middle'
}
}
>
{
item
.
name
}
</
span
>
<
span
style=
{
{
verticalAlign
:
'middle'
,
fontWeight
:
'500'
}
}
>
{
item
.
name
}
</
span
>
</
li
>
);
}
...
...
src/views/WorkFlowEdit/components/SaveCustomTemplate/index.tsx
View file @
7f6227f3
...
...
@@ -229,7 +229,7 @@ const SaveCustomTemplate = (props: IProps) => {
required
error=
{
titleHelper
.
error
}
helperText=
{
titleHelper
.
helperText
}
style=
{
{
margin
:
"
20px 0
"
}
}
style=
{
{
margin
:
"
8px 0 20px
"
}
}
disabled=
{
id
?
true
:
false
}
></
MyInput
>
<
MyInput
...
...
src/views/WorkFlowEdit/index.tsx
View file @
7f6227f3
...
...
@@ -237,6 +237,7 @@ const WorkFlowEdit = observer((props: IProps) => {
anchorEl=
{
anchorEl
}
onCancel=
{
handleCancel
}
onConfirm=
{
handleConfirm
}
placement=
"bottom-end"
/>
{
saveFormDialog
&&
(
<
SaveCustomTemplate
...
...
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