Files
smartDriveEEUniApp/custom-tab-bar/index.wxml
2026-01-20 09:03:50 +08:00

14 lines
390 B
Plaintext

<view class="tabbar">
<view
wx:for="{{visibleTabs}}"
wx:key="key"
class="tabbar-item {{currentPath === item.pagePath ? 'active' : ''}}"
data-key="{{item.key}}"
bindtap="switchTab"
>
<image class="tabbar-icon" src="{{currentPath === item.pagePath ? item.selectedIconPath : item.iconPath}}" />
<text class="tabbar-text">{{item.text}}</text>
</view>
</view>