- <!--custom-tab-bar/index.js.wxml-->
- <view class="tab-bar">
- <view wx:for="{{list}}" wx:key="index" class="tab-bar-item" data-path="{{item.pagePath}}" data-index="{{index}}" bindtap="switchTab">
- <view class="{{selected === index ? 'current' : 'others'}}">{{item.text}}</view>
- </view>
- </view>
|