index.axml 1011 B

12345678910111213141516
  1. <view class='slider-index {{className}}' style='{{style}}' ref='saveChildRef0'>
  2. <import-sjs from='./index.sjs' name='computed'>
  3. </import-sjs>
  4. <import-sjs from='../wxs/utils.sjs' name='utils'>
  5. </import-sjs>
  6. <view class="{{customClass}} {{ utils.bem('slider', { disabled }) }}" style="{{ inactiveColor ? 'background:' + inactiveColor : '' }}" onTap='antmoveAction' data-antmove-tap='onClick'>
  7. <view class='van-slider__bar' style='{{ barStyle }};{{ computed.barStyle(barHeight, activeColor) }}'>
  8. <view class='van-slider__button-wrapper' catchTouchStart='antmoveAction' data-antmove-touchstart='onTouchStart' catchTouchMove='antmoveAction' data-antmove-touchmove='onTouchMove' catchTouchEnd='antmoveAction' data-antmove-touchend='onTouchEnd' catchTouchCancel='antmoveAction' data-antmove-touchcancel='onTouchEnd'>
  9. <slot a:if='{{ useButtonSlot }}' name='button'>
  10. </slot>
  11. <view a:else class='van-slider__button'>
  12. </view>
  13. </view>
  14. </view>
  15. </view>
  16. </view>