go
This commit is contained in:
14
miniprogramPre/custom-tab-bar/index.wxml
Normal file
14
miniprogramPre/custom-tab-bar/index.wxml
Normal file
@@ -0,0 +1,14 @@
|
||||
<view class="tab-bar">
|
||||
<view
|
||||
wx:for="{{list}}"
|
||||
wx:key="pagePath"
|
||||
wx:if="{{!item.hidden}}"
|
||||
class="tab-item {{selected === index ? 'active' : ''}} {{item.isCenter ? 'center' : ''}}"
|
||||
data-path="{{item.pagePath}}"
|
||||
data-index="{{index}}"
|
||||
bindtap="switchTab"
|
||||
>
|
||||
<view class="tab-icon">{{item.icon}}</view>
|
||||
<text class="tab-text">{{item.text}}</text>
|
||||
</view>
|
||||
</view>
|
||||
Reference in New Issue
Block a user