index.wxml 299 B

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