适配小程序代码结构
This commit is contained in:
13
custom-tab-bar/index.wxml
Normal file
13
custom-tab-bar/index.wxml
Normal file
@@ -0,0 +1,13 @@
|
||||
<view class="tabbar">
|
||||
<view
|
||||
wx:for="{{visibleTabs}}"
|
||||
wx:key="key"
|
||||
class="tabbar-item {{currentPath === item.pagePath ? 'active' : ''}}"
|
||||
data-item="{{item}}"
|
||||
bindtap="switchTab"
|
||||
>
|
||||
<image class="tabbar-icon" src="{{currentPath === item.pagePath ? item.selectedIconPath : item.iconPath}}" />
|
||||
<text class="tabbar-text">{{item.text}}</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
Reference in New Issue
Block a user