File tree Expand file tree Collapse file tree 3 files changed +10
-9
lines changed Expand file tree Collapse file tree 3 files changed +10
-9
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " weui-miniprogram" ,
3
- "version" : " 0.1.6 " ,
3
+ "version" : " 0.1.8 " ,
4
4
"description" : " " ,
5
5
"main" : " miniprogram_dist/index.js" ,
6
6
"scripts" : {
Original file line number Diff line number Diff line change 1
1
{
2
+ "component" : true ,
2
3
"usingComponents" : {
3
4
"mp-cells" : " ../cells/cells" ,
4
5
"mp-cell" : " ../cell/cell"
Original file line number Diff line number Diff line change 1
1
<view class="weui-tabbar {{extClass}}">
2
- <!-- 选中的时候往weui-tabbar__item加class:weui-bar__item_on -->
3
- <view data-index='{{index}}' bindtap="tabChange" wx:for="{{list}}" class="weui-tabbar__item {{index === current ? 'weui-bar__item_on' : ''}}">
4
- <view style="position: relative;display:inline-block;">
5
- <image src="{{current === index ? item.selectedIconPath : item.iconPath}}" class="weui-tabbar__icon"></image>
6
- <mp-badge wx:if="{{item.badge}}" content="{{item.badge}}" style="position: absolute;top:-2px;left:calc(100% - 3px)"></mp-badge>
7
- </view>
8
- <view class="weui-tabbar__label">{{item.text}}</view>
2
+ <!-- 选中的时候往weui-tabbar__item加class:weui-bar__item_on -->
3
+ <view data-index='{{index}}' bindtap="tabChange" wx:for="{{list}}" class="weui-tabbar__item {{index === current ? 'weui-bar__item_on' : ''}}">
4
+ <view style="position: relative;display:inline-block;">
5
+ <image src="{{current === index ? item.selectedIconPath : item.iconPath}}" class="weui-tabbar__icon"></image>
6
+ <mp-badge wx:if="{{item.badge}}" content="{{item.badge}}" style="position: absolute;top:-2px;left:calc(100% - 3px)"></mp-badge>
9
7
</view>
10
- </view>
8
+ <view class="weui-tabbar__label">{{item.text}}</view>
9
+ </view>
10
+ </view>
You can’t perform that action at this time.
0 commit comments