<!--miniprogram/custom-tab-bar/index.wxml-->
<view class="tab-bar" style='height:{{isIphoneX?166:120}}rpx;'>
<view class="tab-bar-border"></view>
  <view wx:for="{{list}}" wx:key="index" class="tab-bar-item" data-path="{{item.pagePath}}" data-index="{{index}}" data-auth="{{item.auth}}" bindtap="switchTab">
    <image 
      class="tab-bar-item-image" 
      src="{{selected === index ? item.selectedIconPath : item.iconPath}}">
    </image>
    <view style="color: {{selected === index ? selectedColor : color}}">{{item.text}}</view>
  </view>
</view>
