File tree 3 files changed +45
-1
lines changed
tools/demo/example/tabbar
3 files changed +45
-1
lines changed Original file line number Diff line number Diff line change
1
+ @import " ../../src/weui-wxss/src/style/base/fn" ;
2
+
3
+ @media only screen and (min-width : 450px ) {
4
+ .weui-tabbar {
5
+ flex-direction : column ;
6
+
7
+ width : 60px ;
8
+ height : 100% ;
9
+
10
+ & :before {
11
+ left : unset ;
12
+ height : unset ;
13
+ .setRightLine (@weuiLineColorLight );
14
+ }
15
+ }
16
+
17
+ .weui-tabbar__item {
18
+ flex : none ;
19
+ }
20
+ }
Original file line number Diff line number Diff line change 3
3
<view class="page__title">Tabbar</view>
4
4
<view class="page__desc">类似小程序原生tabbar的组件,可用于自定义tabbar</view>
5
5
</view>
6
- <mp-tabbar style="position:fixed;bottom:0;width:100%;left:0;right:0; " list="{{list}}" bindchange="tabChange"></mp-tabbar>
6
+ <mp-tabbar class="tabbar " list="{{list}}" bindchange="tabChange"></mp-tabbar>
7
7
</view>
Original file line number Diff line number Diff line change 1
1
/* example/tabbar/tabbar.wxss */
2
2
@import '../common.wxss';
3
+
4
+ @media only screen and (min-width: 450px) {
5
+ .page__hd {
6
+ margin-left: 60px;
7
+ }
8
+
9
+ .tabbar {
10
+ position:fixed;
11
+ top: 0;
12
+ bottom:0;
13
+ width: unset;
14
+ height: 100%;
15
+ left:0;
16
+ right: unset;
17
+ }
18
+ }
19
+
20
+ .tabbar {
21
+ position:fixed;
22
+ bottom:0;
23
+ width:100%;
24
+ left:0;
25
+ right:0;
26
+ }
You can’t perform that action at this time.
0 commit comments