<!--components/custom-tab-bar/index.wxml-->
<view class="tab-bar">
    <view wx:for="{{list}}" wx:key="index" class="tab-bar-item {{item.bulge?'bulge':''}}" data-path="{{item.pagePath}}" data-index="{{index}}" bindtap="{{item.jump=='nav'?'navigateTo':'switchTab'}}">
    <image class="image" src="{{selected == index ? item.selectedIconPath : item.iconPath}}" mode="aspectFit"></image>
    <view wx:if="{{item.text}}" class="tab-bar-view"
     style="color: {{selected==index?selectedColor:color}};">{{item.text}}</view>
    </view>
</view>