| 1234567891011121314151617181920212223242526272829303132333435363738394041 |
- <view class="van-picker custom-class">
- <view
- wx:if="{{ showToolbar }}"
- class="van-picker__toolbar van-hairline--top-bottom toolbar-class"
- >
- <view class="van-picker__cancel" data-type="cancel" bindtap="emit">
- {{ cancelButtonText || '取消' }}
- </view>
- <view wx:if="{{ title }}" class="van-picker__title van-ellipsis">{{ title }}</view>
- <view class="van-picker__confirm" data-type="confirm" bindtap="emit">
- {{ confirmButtonText || '确认' }}
- </view>
- </view>
- <view wx:if="{{ loading }}" class="van-picker__loading">
- <loading color="#1989fa"/>
- </view>
- <view
- class="van-picker__columns"
- style="height: {{ itemHeight * visibleItemCount }}px"
- catch:touchmove="noop"
- >
- <picker-column
- class="van-picker__column"
- wx:for="{{ simple ? [columns] : columns }}"
- wx:key="index"
- data-index="{{ index }}"
- custom-class="column-class"
- value-key="{{ valueKey }}"
- initial-options="{{ simple ? item : item.values }}"
- default-index="{{ item.defaultIndex }}"
- item-height="{{ itemHeight }}"
- visible-item-count="{{ visibleItemCount }}"
- active-class="active-class"
- bind:change="onChange"
- />
- <view
- class="van-picker__frame van-hairline--top-bottom"
- style="height: {{ itemHeight }}px"
- />
- </view>
- </view>
|