<!--components/custom-tab-bar/index.wxml-->
<view class="tab-bar">
  <view class="tab-bar-border"></view>
  <view wx:for="{{list}}" wx:key="index" class="tab-bar-item" data-path="{{item.pagePath}}" data-index="{{index}}" bindtap="switchTab">
    <!-- <image class="cover-image" src="{{selected === index ? item.selectedIconPath : item.iconPath}}"></image> -->
    <text class="cover-image icon iconfont iconfont-{{selected === index ? item.selectedIconPath + ' activeIcon' : item.iconPath}}"></text>
    <view class="cover-view" style="color: {{selected === index ? selectedColor : color}}">{{item.text}}</view>
  </view>
</view>