Skip to content

Commit

Permalink
chore: 升级版本 0.9.12
Browse files Browse the repository at this point in the history
chore: 升级版本 0.9.12
  • Loading branch information
smileShirmy committed Jul 10, 2022
2 parents 3fc1c7a + 4537ee3 commit 264cb0e
Show file tree
Hide file tree
Showing 10 changed files with 13 additions and 9 deletions.
2 changes: 1 addition & 1 deletion dist/tab-bar/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/tab-bar/index.wxml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<image class="lu-tab-bar__item-image {{selectedIndex===index?'lu-tab-bar__item-image--selected':''}}" src="{{selectedIndex===index?item.selectedIconPath:item.iconPath}}"></image>
</l-badge>

<view wx:if="{{item.text!==undefined}}" class="lu-tab-bar__item-text {{selectedIndex===index?'lu-tab-bar__item-text--selected':''}}" style="color:{{selectedIndex===index?textSelectedColor:textColor}}">
<view wx:if="{{item.text!==undefined}}" class="lu-tab-bar__item-text {{selectedIndex===index?'lu-tab-bar__item-text--selected':''}}" style="{{selectedIndex===index?textSelectedColor?'color:'+textSelectedColor:'':'color:'+textColor}}">
{{item.text}}
</view>
</view>
Expand Down
2 changes: 1 addition & 1 deletion dist/tab-bar/index.wxss
Original file line number Diff line number Diff line change
@@ -1 +1 @@
.lu-tab-bar{left:0;right:0;bottom:0;position:fixed;z-index:9999;width:750rpx;height:106rpx;display:flex;background-color:#fff;background-size:100% 100%;background-repeat:no-repeat;padding-bottom:constant(safe-area-inset-bottom)!important;padding-bottom:env(safe-area-inset-bottom)!important}.lu-tab-bar__item-wrapper{display:flex;height:100%;justify-content:center;padding-bottom:constant(safe-area-inset-bottom)!important;padding-bottom:env(safe-area-inset-bottom)!important}.lu-tab-bar__item-container{display:flex;flex-direction:column;align-items:center;justify-content:center}.lu-tab-bar__item-image{display:block;width:52rpx;height:52rpx}.lu-tab-bar__item-text{margin-top:4rpx;font-size:24rpx;line-height:1}
.lu-tab-bar{left:0;right:0;bottom:0;position:fixed;z-index:9999;width:750rpx;height:106rpx;display:flex;background-color:#fff;background-size:100% 100%;background-repeat:no-repeat;padding-bottom:constant(safe-area-inset-bottom)!important;padding-bottom:env(safe-area-inset-bottom)!important}.lu-tab-bar__item-wrapper{display:flex;height:100%;justify-content:center;padding-bottom:constant(safe-area-inset-bottom)!important;padding-bottom:env(safe-area-inset-bottom)!important}.lu-tab-bar__item-container{display:flex;flex-direction:column;align-items:center;justify-content:center}.lu-tab-bar__item-image{display:block;width:52rpx;height:52rpx}.lu-tab-bar__item-text{margin-top:4rpx;font-size:24rpx;line-height:1}.lu-tab-bar__item-text--selected{color:#3963bc}
2 changes: 1 addition & 1 deletion examples/dist/tab-bar/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Component({
// 文字选中颜色
textSelectedColor: {
type: String,
value: '#3963bc'
value: ''
},
// 文字未选中颜色
textColor: {
Expand Down
2 changes: 1 addition & 1 deletion examples/dist/tab-bar/index.wxml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<image class="lu-tab-bar__item-image {{selectedIndex===index?'lu-tab-bar__item-image--selected':''}}" src="{{selectedIndex===index?item.selectedIconPath:item.iconPath}}"></image>
</l-badge>
<!-- 标签文字 -->
<view wx:if="{{item.text!==undefined}}" class="lu-tab-bar__item-text {{selectedIndex===index?'lu-tab-bar__item-text--selected':''}}" style="color:{{selectedIndex===index?textSelectedColor:textColor}}">
<view wx:if="{{item.text!==undefined}}" class="lu-tab-bar__item-text {{selectedIndex===index?'lu-tab-bar__item-text--selected':''}}" style="{{selectedIndex===index?textSelectedColor?'color:'+textSelectedColor:'':'color:'+textColor}}">
{{item.text}}
</view>
</view>
Expand Down
2 changes: 1 addition & 1 deletion examples/dist/tab-bar/index.wxss
Original file line number Diff line number Diff line change
@@ -1 +1 @@
.lu-tab-bar{left:0;right:0;bottom:0;position:fixed;z-index:9999;width:750rpx;height:106rpx;display:flex;background-color:#fff;background-size:100% 100%;background-repeat:no-repeat;padding-bottom:constant(safe-area-inset-bottom)!important;padding-bottom:env(safe-area-inset-bottom)!important}.lu-tab-bar__item-wrapper{display:flex;height:100%;justify-content:center;padding-bottom:constant(safe-area-inset-bottom)!important;padding-bottom:env(safe-area-inset-bottom)!important}.lu-tab-bar__item-container{display:flex;flex-direction:column;align-items:center;justify-content:center}.lu-tab-bar__item-image{display:block;width:52rpx;height:52rpx}.lu-tab-bar__item-text{margin-top:4rpx;font-size:24rpx;line-height:1}
.lu-tab-bar{left:0;right:0;bottom:0;position:fixed;z-index:9999;width:750rpx;height:106rpx;display:flex;background-color:#fff;background-size:100% 100%;background-repeat:no-repeat;padding-bottom:constant(safe-area-inset-bottom)!important;padding-bottom:env(safe-area-inset-bottom)!important}.lu-tab-bar__item-wrapper{display:flex;height:100%;justify-content:center;padding-bottom:constant(safe-area-inset-bottom)!important;padding-bottom:env(safe-area-inset-bottom)!important}.lu-tab-bar__item-container{display:flex;flex-direction:column;align-items:center;justify-content:center}.lu-tab-bar__item-image{display:block;width:52rpx;height:52rpx}.lu-tab-bar__item-text{margin-top:4rpx;font-size:24rpx;line-height:1}.lu-tab-bar__item-text--selected{color:#3963bc}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "lin-ui",
"version": "0.9.11",
"version": "0.9.12",
"description": "A high quality UI components library with MiniProgram",
"main": "app.js",
"directories": {
Expand Down
2 changes: 1 addition & 1 deletion src/tab-bar/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Component({
// 文字选中颜色
textSelectedColor: {
type: String,
value: '#3963bc'
value: ''
},
// 文字未选中颜色
textColor: {
Expand Down
4 changes: 4 additions & 0 deletions src/tab-bar/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,7 @@
font-size: 24rpx;
line-height: 1;
}

.@{component}__item-text--selected {
color: @theme-color;
}
2 changes: 1 addition & 1 deletion src/tab-bar/index.wxml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<image class="lu-tab-bar__item-image {{selectedIndex===index?'lu-tab-bar__item-image--selected':''}}" src="{{selectedIndex===index?item.selectedIconPath:item.iconPath}}"></image>
</l-badge>
<!-- 标签文字 -->
<view wx:if="{{item.text!==undefined}}" class="lu-tab-bar__item-text {{selectedIndex===index?'lu-tab-bar__item-text--selected':''}}" style="color:{{selectedIndex===index?textSelectedColor:textColor}}">
<view wx:if="{{item.text!==undefined}}" class="lu-tab-bar__item-text {{selectedIndex===index?'lu-tab-bar__item-text--selected':''}}" style="{{selectedIndex===index?textSelectedColor?'color:'+textSelectedColor:'':'color:'+textColor}}">
{{item.text}}
</view>
</view>
Expand Down

0 comments on commit 264cb0e

Please sign in to comment.