Skip to content

Commit 7403625

Browse files
author
cunjinli
committed
fix #18
1 parent e3b9b35 commit 7403625

File tree

3 files changed

+10
-9
lines changed

3 files changed

+10
-9
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "weui-miniprogram",
3-
"version": "0.1.6",
3+
"version": "0.1.8",
44
"description": "",
55
"main": "miniprogram_dist/index.js",
66
"scripts": {

src/searchbar/searchbar.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"component": true,
23
"usingComponents": {
34
"mp-cells": "../cells/cells",
45
"mp-cell": "../cell/cell"

src/tabbar/tabbar.wxml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<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>
97
</view>
10-
</view>
8+
<view class="weui-tabbar__label">{{item.text}}</view>
9+
</view>
10+
</view>

0 commit comments

Comments
 (0)