File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ Component({
2424 // 文字选中颜色
2525 textSelectedColor : {
2626 type : String ,
27- value : '#3963bc '
27+ value : ''
2828 } ,
2929 // 文字未选中颜色
3030 textColor : {
Original file line number Diff line number Diff line change 4545 font-size : 24 rpx;
4646 line-height : 1 ;
4747}
48+
49+ .@{component} __item-text--selected {
50+ color : @theme-color ;
51+ }
Original file line number Diff line number Diff line change 77 <image class="lu-tab-bar__item-image {{selectedIndex===index?'lu-tab-bar__item-image--selected':''}}" src="{{selectedIndex===index?item.selectedIconPath:item.iconPath}}"></image>
88 </l-badge>
99 <!-- 标签文字 -->
10- <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}}">
10+ <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}}">
1111 {{item.text}}
1212 </view>
1313 </view>
You can’t perform that action at this time.
0 commit comments