epmet 工作端 小程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
1.5 KiB

<wux-spin nested spinning="{{ loading }}">
<view
class="wux-class {{ classes.wrap }}"
data-picker-value="{{ inputValue }}"
data-picker-col-value="{{ fieldNames.value }}"
data-picker-col-label="{{ fieldNames.label }}"
style="{{ styles.wrap }}"
bind:touchstart="onTouchStart"
catch:touchmove="onTouchMove"
bind:touchend="onTouchEnd"
bind:touchcancel="onTouchEnd"
>
<view class="wux-mask-class {{ maskClass }} {{ classes.mask }}" style="{{ styles.mask }} {{ extMaskStyle }}"></view>
<view class="wux-indicator-class {{ indicatorClass }} {{ classes.indicator }}" style="{{ styles.indicator }} {{ extIndicatorStyle }}"></view>
<view class="wux-content-class {{ classes.content }}" style="{{ styles.content }} {{ contentStyle }}">
<block wx:for="{{ cols }}" wx:for-item="col" wx:key="{{ fieldNames.value }}">
<view
style="{{ styles.item }} {{ extItemStyle }}"
class="{{ classes.item }} {{ col.disabled ? prefixCls + '__item--disabled' : '' }} {{ selectedIndex === index ? prefixCls + '__item--selected' : '' }}"
data-value="{{ col[fieldNames.value] }}"
data-index="{{ index }}"
data-disabled="{{ !!col.disabled }}"
catchtap="onItemClick"
>
{{ col[fieldNames.label] }}
</view>
</block>
</view>
</view>
</wux-spin>