index.axml 937 B

12345678910111213141516171819202122
  1. <view class='tabbar-item-index {{className}}' style='{{style}}' ref='saveChildRef0'>
  2. <import-sjs from='../wxs/utils.sjs' name='utils'>
  3. </import-sjs>
  4. <view class="{{ utils.bem('tabbar-item', { active }) }} {{customClass}}" style='color: {{ active ? activeColor : inactiveColor }}' onTap='antmoveAction' data-antmove-tap='onClick'>
  5. <view class='van-tabbar-item__icon'>
  6. <van-icon a:if='{{ icon }}' name='{{ icon }}' class-prefix='{{ iconPrefix }}' custom-class='van-tabbar-item__icon__inner' ref='saveChildRef1'>
  7. </van-icon>
  8. <block a:else >
  9. <slot a:if='{{ active }}' name='icon-active'>
  10. </slot>
  11. <slot a:else name='icon'>
  12. </slot>
  13. </block>
  14. <van-info dot='{{ dot }}' info='{{ info }}' custom-class='van-tabbar-item__info' ref='saveChildRef2'>
  15. </van-info>
  16. </view>
  17. <view class='van-tabbar-item__text'>
  18. <slot>
  19. </slot>
  20. </view>
  21. </view>
  22. </view>