navigationBar.wxml 456 B

12345678910
  1. <!--components/navigationBar/navigationBar.wxml-->
  2. <view class="tabbar-box">
  3. <block wx:for="{{menu}}" wx:key="list">
  4. <view class="menu-item {{currIndex==index && 'active'}}" catchtap="tabClick" data-index="{{index}}">
  5. <iconfont name="{{currIndex==index ? item.select :item.icon}}" class="iconStyle iconfont" />
  6. <text>{{item.name}}</text>
  7. </view>
  8. </block>
  9. <view class="active-tabbar-box" style="--n:{{currIndex}}"></view>
  10. </view>