修改界面中,临时提交
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
<view class="tab-bar">
|
||||
<view
|
||||
class="tab-item {{ selected === index ? 'is-active' : '' }}"
|
||||
wx:for="{{ list }}"
|
||||
wx:key="pagePath"
|
||||
data-index="{{ index }}"
|
||||
data-path="{{ item.pagePath }}"
|
||||
bindtap="onTap"
|
||||
>
|
||||
<!-- 三个 tab 共用同一套线性图标,选中态只换颜色、不换图形 -->
|
||||
<t-icon
|
||||
name="{{ item.icon }}"
|
||||
size="44rpx"
|
||||
color="{{ selected === index ? activeColor : inactiveColor }}"
|
||||
/>
|
||||
<text class="tab-text">{{ item.text }}</text>
|
||||
</view>
|
||||
</view>
|
||||
Reference in New Issue
Block a user