<!--custom-tab-bar/index.wxml-->
<view class="tab-bar">
	<view class="tab-bar-border"></view>
	<block wx:for="{{list}}" wx:key="index">
		<view wx:if="{{item.showTab}}" class="tab-bar-item" data-path="{{item.pagePath}}" data-index="{{index}}" bindtap="switchTab">
			<image src="{{route === item.pagePath ? item.selectedIconPath : item.iconPath}}"></image>
			<view
				style="color: {{route === item.pagePath ? selectedColor : color}};opacity:{{route === item.pagePath ? 1 : 0.45}}">
				{{item.text}}</view>
		</view>
	</block>
</view>