Skip to content

Commit d894734

Browse files
authoredMar 14, 2022
fix(Tabs): 下划线样式问题 #661 (#662)
1 parent 81ef281 commit d894734

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
 

‎packages/react-tabs/src/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ export default function Tabs(props: TabsProps) {
105105
if (activeItem.current && type === 'line') {
106106
setSlideStyle({
107107
width: activeItem.current.clientWidth,
108-
left: activeItem.current.offsetLeft,
108+
left: activeItem.current.offsetLeft + 15,
109109
});
110110
}
111111
}

‎packages/react-tabs/src/style/index.less

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
&-line &-slide {
6161
background-color: #108ee9;
6262
box-sizing: border-box;
63-
bottom: 0;
63+
bottom: 45px;
6464
position: absolute;
6565
height: 1px;
6666
left: 0;

0 commit comments

Comments
 (0)