Commit 8ddb3f4f authored by chenshouchao's avatar chenshouchao

feat: tabs组件样式微调

parent 894a8ac2
......@@ -6,8 +6,9 @@
color: #1e2633;
line-height: 48px;
}
.titleBox::after {
content: "|";
padding: 0 24px;
color: #dde1e6;
.titleBoxLine {
width: 1px;
height: 20px;
background-color: rgba(221, 225, 230, 1);
margin: 0 24px;
}
......@@ -80,6 +80,9 @@ const theme = createTheme({
indicator: {
backgroundColor: "#1370FF",
},
flexContainer: {
alignItems: "center",
},
},
},
MuiButtonBase: {
......@@ -182,14 +185,17 @@ const Tabs = (props: IProps) => {
}}
>
{title ? (
<span
className={classNames({
[styles.titleBox]: true,
[titleClass]: titleClass,
})}
>
{title}
</span>
<>
<span
className={classNames({
[styles.titleBox]: true,
[titleClass]: titleClass,
})}
>
{title}
</span>
<div className={styles.titleBoxLine}></div>
</>
) : null}
{tabList
?.filter((item) => !item.hide)
......
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