<!--miniprogram/custom-tab-bar/index.wxml-->
<view class="tab-bar">
  <!-- <view class="tab-bar-border" wx:if="{{selected==1}}"></view> -->
  <view wx:for="{{list}}" wx:key="index" class="{{index==selected?'item-sel item':'item'}}" data-path="{{item.pagePath}}" data-index="{{index}}" bindtap="switchTab">
    <!-- <image class="icon" src="{{selected === index ? item.selectedIconPath : item.iconPath}}"></image> -->
    <text >{{item.title}}</text>
  </view>
</view>