index.wxml 618 B

1234567891011121314151617181920212223242526
  1. <van-tabbar
  2. active="{{ active }}"
  3. placeholder="{{true}}"
  4. z-index="999"
  5. active-color="rgba(107, 133, 89, 1)"
  6. inactive-color="rgba(179, 179, 179, 1)"
  7. bind:change="onChange">
  8. <block
  9. wx:for="{{list}}"
  10. wx:key="pagePath">
  11. <van-tabbar-item
  12. name="{{item.pagePath}}">
  13. <image
  14. class="tab-icon"
  15. slot="icon"
  16. src="../{{ item.iconPath }}"
  17. mode="aspectFit"/>
  18. <image
  19. class="tab-icon"
  20. slot="icon-active"
  21. src="../{{ item.selectedIconPath }}"
  22. mode="aspectFit"/>
  23. {{item.text}}
  24. </van-tabbar-item>
  25. </block>
  26. </van-tabbar>