index.wxml
825 Bytes
<view bind:touchcancel="onTouchEnd" bind:touchend="onTouchEnd" bind:touchstart="onTouchStart" catch:touchmove="onTouchMove" class="van-picker-column custom-class" style="height: {{itemHeight*visibleItemCount}}px">
<view style="transition: transform {{duration}}ms; line-height: {{itemHeight}}px; transform: translate3d(0, {{offset+itemHeight*(visibleItemCount-1)/2}}px, 0)">
<view bindtap="onClickItem" class="van-ellipsis van-picker-column__item {{option&&option.disabled?'van-picker-column__item--disabled':''}} {{index===currentIndex?'van-picker-column__item--selected active-class':''}}" data-index="{{index}}" style="height: {{itemHeight}}px" wx:for="{{options}}" wx:for-item="option" wx:key="index">{{getOptionText(option,valueKey)}}</view>
</view>
</view>
<wxs module="getOptionText" src="index.wxs" />