File tree Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ Component({
24
24
// 文字选中颜色
25
25
textSelectedColor : {
26
26
type : String ,
27
- value : '#3963bc '
27
+ value : ''
28
28
} ,
29
29
// 文字未选中颜色
30
30
textColor : {
Original file line number Diff line number Diff line change 45
45
font-size : 24 rpx;
46
46
line-height : 1 ;
47
47
}
48
+
49
+ .@{component} __item-text--selected {
50
+ color : @theme-color ;
51
+ }
Original file line number Diff line number Diff line change 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>
8
8
</l-badge>
9
9
<!-- 标签文字 -->
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}}">
11
11
{{item.text}}
12
12
</view>
13
13
</view>
You can’t perform that action at this time.
0 commit comments