Skip to content

Commit

Permalink
fix(Tabs): 下划线样式问题 #661 (#662)
Browse files Browse the repository at this point in the history
  • Loading branch information
Amber-Nan committed Mar 14, 2022
1 parent 81ef281 commit d894734
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/react-tabs/src/index.tsx
Expand Up @@ -105,7 +105,7 @@ export default function Tabs(props: TabsProps) {
if (activeItem.current && type === 'line') {
setSlideStyle({
width: activeItem.current.clientWidth,
left: activeItem.current.offsetLeft,
left: activeItem.current.offsetLeft + 15,
});
}
}
Expand Down
2 changes: 1 addition & 1 deletion packages/react-tabs/src/style/index.less
Expand Up @@ -60,7 +60,7 @@
&-line &-slide {
background-color: #108ee9;
box-sizing: border-box;
bottom: 0;
bottom: 45px;
position: absolute;
height: 1px;
left: 0;
Expand Down

0 comments on commit d894734

Please sign in to comment.