Commit 8ddb3f4f authored by chenshouchao's avatar chenshouchao

feat: tabs组件样式微调

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