|
@@ -9,7 +9,7 @@
|
|
<image
|
|
<image
|
|
v-if="icon"
|
|
v-if="icon"
|
|
:name="icon"
|
|
:name="icon"
|
|
- :color="isActive ? parentData.activeColor : parentData.color"
|
|
|
|
|
|
+ :color="isActive ? parentData.activeColor : parentData.inactiveColor"
|
|
:size="20"
|
|
:size="20"
|
|
></image>
|
|
></image>
|
|
<block v-else>
|
|
<block v-else>
|
|
@@ -30,7 +30,7 @@
|
|
<text
|
|
<text
|
|
class="u-tabbar-item__text"
|
|
class="u-tabbar-item__text"
|
|
:style="{
|
|
:style="{
|
|
- color: isActive ? parentData.activeColor : parentData.color,
|
|
|
|
|
|
+ color: isActive ? parentData.activeColor : parentData.inactiveColor,
|
|
}"
|
|
}"
|
|
>
|
|
>
|
|
{{ text }}
|
|
{{ text }}
|
|
@@ -120,8 +120,8 @@
|
|
addStyle,
|
|
addStyle,
|
|
parentData: {
|
|
parentData: {
|
|
value: null,
|
|
value: null,
|
|
- activeColor: '',
|
|
|
|
- color: '',
|
|
|
|
|
|
+ activeColor: '', // 选中标签的颜色
|
|
|
|
+ inactiveColor: '', // 未选中标签的颜色
|
|
},
|
|
},
|
|
parent: {},
|
|
parent: {},
|
|
};
|
|
};
|