Skip to content

Commit bcdad5b

Browse files
committed
fix: v15 样式
1 parent 19a978f commit bcdad5b

File tree

5 files changed

+9
-6
lines changed

5 files changed

+9
-6
lines changed

src/packages/tabbar/demos/h5/demo5.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const Demo = () => {
2121
active ? (
2222
<Hi />
2323
) : (
24-
<Image src="https://storage.360buyimg.com/imgtools/00e365dee3-8fe58f80-0952-11f0-8d73-ab964e6901f9.png" />
24+
<Image src="https://storage.360buyimg.com/imgtools/cadd649d79-8de544e0-0a11-11f0-9f55-9901c75f24a0.png" />
2525
)
2626
}
2727
title={(active: boolean) => (active ? '逛' : '')}

src/packages/tabbar/tabbar.scss

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
background: $color-background-overlay;
1010

1111
&-wrap {
12-
width: 100%;
1312
height: $tabbar-height;
1413
display: flex;
1514

@@ -22,6 +21,7 @@
2221
}
2322

2423
&-horizontal {
24+
align-items: center;
2525
.nut-tabbar-item {
2626
flex-direction: row;
2727
justify-content: center;
@@ -33,6 +33,11 @@
3333
margin: 0 4px 0 6px;
3434
font-size: 14px;
3535
}
36+
.nut-badge-sup {
37+
&::after {
38+
border: 0;
39+
}
40+
}
3641
}
3742
}
3843
}

src/packages/tabbaritem/tabbaritem.scss

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66
align-items: center;
77
flex: 1;
88
padding: 6px 0 2px;
9-
text-align: center;
10-
text-decoration: none;
119
color: $tabbar-inactive-color;
1210
height: 100%;
1311

src/packages/tabbaritem/tabbaritem.taro.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ export const TabbarItem: FunctionComponent<Partial<TaroTabbarItemProps>> = (
103103
const renderIconAndTitle = () => {
104104
return (
105105
<>
106-
<Badge size="normal" {...badgeProps}>
106+
<Badge size="normal" {...badgeProps} top={3}>
107107
{renderIcon()}
108108
</Badge>
109109
{renderTitleText()}

src/packages/tabbaritem/tabbaritem.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ export const TabbarItem: FunctionComponent<Partial<WebTabbarItemProps>> = (
9191
const renderIconAndTitle = () => {
9292
return (
9393
<>
94-
<Badge size="normal" {...badgeProps}>
94+
<Badge size="normal" {...badgeProps} top={3}>
9595
{renderIcon()}
9696
</Badge>
9797
{renderTitleText()}

0 commit comments

Comments
 (0)