index.axml 1.2 KB

1234567891011
  1. <view class='picker-column-index {{className}}' style='{{style}}' ref='saveChildRef0'>
  2. <import-sjs from='./index.sjs' name='getOptionText'>
  3. </import-sjs>
  4. <view class='van-picker-column {{customClass}}' style='height: {{ itemHeight * visibleItemCount }}px' catchTouchStart='antmoveAction' data-antmove-touchstart='onTouchStart' catchTouchMove='antmoveAction' data-antmove-touchmove='onTouchMove' catchTouchEnd='antmoveAction' data-antmove-touchend='onTouchEnd' catchTouchCancel='antmoveAction' data-antmove-touchcancel='onTouchEnd'>
  5. <view style='transition: transform {{ duration }}ms; line-height: {{ itemHeight }}px; transform: translate3d(0, {{ offset + (itemHeight * (visibleItemCount - 1)) / 2 }}px, 0)'>
  6. <view a:for='{{ options }}' a:for-item='option' a:key='{{index}}' data-index='{{ index }}' style='height: {{ itemHeight }}px' class="van-ellipsis van-picker-column__item {{ option && option.disabled ? 'van-picker-column__item--disabled' : '' }} {{ index === currentIndex ? 'van-picker-column__item--selected active-class' : '' }}" ref-numbers='{{ options }}' onTap='antmoveAction' data-antmove-tap='onClickItem'>
  7. {{ getOptionText(option, valueKey) }}
  8. </view>
  9. </view>
  10. </view>
  11. </view>