Skip to content

Commit ecebe95

Browse files
authored
fix: tabbar 样式修改 (#445)
1 parent 118a68f commit ecebe95

File tree

2 files changed

+6
-72
lines changed

2 files changed

+6
-72
lines changed

src/packages/tabbar/index.scss

Lines changed: 5 additions & 71 deletions
Original file line numberDiff line numberDiff line change
@@ -11,76 +11,10 @@
1111
&:last-child {
1212
border-right: 0;
1313
}
14-
}
15-
16-
.bottom {
17-
position: fixed;
18-
bottom: 0px;
19-
left: 0px;
20-
z-index: 888;
21-
}
22-
23-
.tabbar-nav {
24-
flex: 1;
25-
text-align: center;
26-
text-decoration: none;
27-
color: $text-color;
28-
height: 100%;
29-
display: flex;
30-
justify-content: center;
31-
align-items: center;
32-
}
33-
34-
.card {
35-
border-right: 1px solid $tabbar-border-color;
36-
}
37-
38-
.icon-box {
39-
padding: 0px;
40-
display: inline-block;
41-
position: relative;
42-
43-
.tips {
44-
position: absolute;
45-
background: $tabbar-active-color;
46-
border: 1px solid $white;
47-
border-radius: 7px;
48-
text-align: center;
49-
50-
top: -2px;
51-
right: -7px;
52-
box-shadow: 0 0 0 1px $white;
53-
font-size: $font-size-1;
54-
color: $white;
14+
&-bottom {
15+
position: fixed;
16+
bottom: 0px;
17+
left: 0px;
18+
z-index: 888;
5519
}
56-
57-
.num {
58-
line-height: 1;
59-
font-size: $font-size-0;
60-
color: $white;
61-
padding: 1px 2px 2px 3px;
62-
}
63-
64-
.nums {
65-
line-height: 1;
66-
font-size: $font-size-0;
67-
color: $white;
68-
padding: 2px 1px 2px 2px;
69-
}
70-
}
71-
72-
.icon-box .icon {
73-
display: block;
74-
background-size: 100% 100%;
75-
background-position: center center;
76-
}
77-
78-
.icon-box .tabbar-nav-word {
79-
font-size: $font-size-0;
80-
display: block;
81-
}
82-
83-
.icon-box .big-word {
84-
font-size: $font-size-3;
85-
line-height: 1;
8620
}

src/packages/tabbar/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<view class="nut-tabbar" :class="{ bottom }">
2+
<view class="nut-tabbar" :class="{ 'nut-tabbar-bottom': bottom }">
33
<slot></slot>
44
</view>
55
</template>

0 commit comments

Comments
 (0)