Commit a8d6ba52 authored by chenshouchao's avatar chenshouchao

feat: 返回样式修改

parent ff445e1b
import React, { useEffect, useState } from "react"; import React, { useEffect } from "react";
import { Outlet, useLocation, useNavigate } from "react-router-dom"; import { Outlet, useLocation, useNavigate } from "react-router-dom";
import { observer } from "mobx-react-lite"; import { observer } from "mobx-react-lite";
import Avatar from "@mui/material/Avatar"; import Avatar from "@mui/material/Avatar";
......
...@@ -28,8 +28,19 @@ ...@@ -28,8 +28,19 @@
.goBackIcon { .goBackIcon {
cursor: pointer; cursor: pointer;
} }
.goBackIconBox {
width: 32px;
height: 32px;
border-radius: 4px;
display: flex;
align-items: center;
justify-content: center;
}
.goBackIconBox:hover {
background-color: rgb(240, 242, 245);
}
.swTemplateTitle { .swTemplateTitle {
margin: 0 19px 0 8px; margin: 0 19px 0 3px;
line-height: 20px; line-height: 20px;
font-size: 14px; font-size: 14px;
color: rgba(30, 38, 51, 1); color: rgba(30, 38, 51, 1);
......
...@@ -445,13 +445,14 @@ const ProjectSubmitWork = observer(() => { ...@@ -445,13 +445,14 @@ const ProjectSubmitWork = observer(() => {
{fullScreenShow ? null : ( {fullScreenShow ? null : (
<div className={styles.swHeader}> <div className={styles.swHeader}>
<div className={styles.swHeaderLeft}> <div className={styles.swHeaderLeft}>
<div className={styles.goBackIconBox}>
<img <img
onClick={onBack} onClick={onBack}
className={styles.goBackIcon} className={styles.goBackIcon}
src={goback} src={goback}
alt="" alt=""
/> />
</div>
<div className={styles.swTemplateTitle}>{name}</div> <div className={styles.swTemplateTitle}>{name}</div>
</div> </div>
{returnPermission && ( {returnPermission && (
......
...@@ -25,8 +25,22 @@ ...@@ -25,8 +25,22 @@
justify-content: flex-start; justify-content: flex-start;
align-items: center; align-items: center;
} }
.goBackIcon {
cursor: pointer;
}
.goBackIconBox {
width: 32px;
height: 32px;
border-radius: 4px;
display: flex;
align-items: center;
justify-content: center;
}
.goBackIconBox:hover {
background-color: rgb(240, 242, 245);
}
.swTemplateTitle { .swTemplateTitle {
margin: 0 19px 0 8px; margin: 0 19px 0 3px;
line-height: 20px; line-height: 20px;
font-size: 14px; font-size: 14px;
color: rgba(30, 38, 51, 1); color: rgba(30, 38, 51, 1);
......
...@@ -261,6 +261,7 @@ const ProjectSubmitWork = observer(() => { ...@@ -261,6 +261,7 @@ const ProjectSubmitWork = observer(() => {
{fullScreenShow ? null : ( {fullScreenShow ? null : (
<div className={styles.swHeader}> <div className={styles.swHeader}>
<div className={styles.swHeaderLeft}> <div className={styles.swHeaderLeft}>
<div className={styles.goBackIconBox}>
<img <img
className={styles.goBackIcon} className={styles.goBackIcon}
src={goback} src={goback}
...@@ -273,6 +274,7 @@ const ProjectSubmitWork = observer(() => { ...@@ -273,6 +274,7 @@ const ProjectSubmitWork = observer(() => {
) )
} }
/> />
</div>
<div className={styles.swTemplateTitle}> <div className={styles.swTemplateTitle}>
{templateConfigInfo?.title} {templateConfigInfo?.title}
</div> </div>
......
...@@ -26,12 +26,20 @@ ...@@ -26,12 +26,20 @@
align-items: center; align-items: center;
} }
.goBackIcon { .goBackIcon {
margin-right: 8px;
cursor: pointer; cursor: pointer;
} }
/* .goBackIcon:hover:{ .goBackIconBox {
color: ; width: 32px;
} */ height: 32px;
border-radius: 4px;
display: flex;
align-items: center;
justify-content: center;
margin-right: 3px;
}
.goBackIconBox:hover {
background-color: rgb(240, 242, 245);
}
.goBack { .goBack {
cursor: pointer; cursor: pointer;
color: #1e2633; color: #1e2633;
......
...@@ -197,7 +197,9 @@ const WorkFlowEdit = observer((props: IProps) => { ...@@ -197,7 +197,9 @@ const WorkFlowEdit = observer((props: IProps) => {
) )
} }
> >
<div className={styles.goBackIconBox}>
<img className={styles.goBackIcon} src={goback} alt="" /> <img className={styles.goBackIcon} src={goback} alt="" />
</div>
<span className={styles.goBack}>返回</span> <span className={styles.goBack}>返回</span>
</div> </div>
<div className={styles.swHeaderRight}> <div className={styles.swHeaderRight}>
......
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