<!--miniprogram/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="{{item.index}}" bindtap="switchTab"
  style="display: {{item.index === -1 ? 'none' : 'flex'}}">
    <image src="{{selected === item.index  ? item.selectedIconPath : item.iconPath}}"></image>
    <view style="color: {{selected === item.index  ? selectedColor : color}}">{{item.text}}
	</view>
  </view>
</view>
