index.axml 776 B

123456789101112131415
  1. <view class='sidebar-item-index {{className}}' style='{{style}}' ref='saveChildRef0'>
  2. <import-sjs from='../wxs/utils.sjs' name='utils'>
  3. </import-sjs>
  4. <view class="{{ utils.bem('sidebar-item', { selected, disabled }) }} {{ selected ? 'active-class' : '' }} {{ disabled ? 'disabled-class' : '' }} {{customClass}}" hover-class='van-sidebar-item--hover' hover-stay-time='70' onTap='antmoveAction' data-antmove-tap='onClick'>
  5. <view class='van-sidebar-item__text'>
  6. <van-info a:if='{{ badge != null || info !== null || dot }}' dot='{{ dot }}' info='{{ badge != null ? badge : info }}' ref='saveChildRef1'>
  7. </van-info>
  8. <view a:if='{{ title }}'>
  9. {{ title }}
  10. </view>
  11. <slot a:else name='title'>
  12. </slot>
  13. </view>
  14. </view>
  15. </view>