first commit
This commit is contained in:
8
custom-tab-bar/index.wxml
Normal file
8
custom-tab-bar/index.wxml
Normal file
@@ -0,0 +1,8 @@
|
||||
<view class="tab-bar">
|
||||
<block wx:for="{{list}}" wx:key="index">
|
||||
<view class="tab-bar-item" data-path="{{item.pagePath}}" data-index="{{index}}" bindtap="switchTab">
|
||||
<image class="tab-bar-icon" src="{{selected === index ? item.selectedIconPath : item.iconPath}}"></image>
|
||||
<text class="tab-bar-text" style="color: {{selected === index ? selectedColor : color}}">{{item.text}}</text>
|
||||
</view>
|
||||
</block>
|
||||
</view>
|
||||
Reference in New Issue
Block a user