tmp1
This commit is contained in:
@@ -7,8 +7,16 @@
|
||||
data-path="{{ item.pagePath }}"
|
||||
bindtap="onTap"
|
||||
>
|
||||
<!-- 三个 tab 共用同一套线性图标,选中态只换颜色、不换图形 -->
|
||||
<!-- 配置了 imgPath 的 tab(AI客服)走位图:灰色未选中 / 暖橙选中两态切换;
|
||||
其余 tab 走 TDesign 线性图标,选中态只换颜色 -->
|
||||
<image
|
||||
wx:if="{{ item.imgPath }}"
|
||||
class="tab-icon-img"
|
||||
src="{{ selected === index ? item.imgActivePath : item.imgPath }}"
|
||||
mode="aspectFit"
|
||||
/>
|
||||
<t-icon
|
||||
wx:else
|
||||
name="{{ item.icon }}"
|
||||
size="44rpx"
|
||||
color="{{ selected === index ? activeColor : inactiveColor }}"
|
||||
|
||||
Reference in New Issue
Block a user