u-picker.wxml
6.3 KB
<u-popup vue-id="37065306-1" maskCloseAble="{{maskCloseAble}}" mode="bottom" popup="{{false}}" length="auto" safeAreaInsetBottom="{{safeAreaInsetBottom}}" z-index="{{uZIndex}}" value="{{value}}" data-event-opts="{{[['^close',[['close']]],['^input',[['__set_model',['','value','$event',[]]]]]]}}" bind:close="__e" bind:input="__e" class="data-v-70102400" bind:__l="__l" vue-slots="{{['default']}}"><view class="u-datetime-picker data-v-70102400"><view data-event-opts="{{[['touchmove',[['',['$event']]]]]}}" class="u-picker-header data-v-70102400" catchtouchmove="__e"><view class="u-btn-picker u-btn-picker--tips data-v-70102400" style="{{'color:'+(cancelColor)+';'}}" hover-class="u-opacity" hover-stay-time="{{150}}" data-event-opts="{{[['tap',[['getResult',['cancel']]]]]}}" bindtap="__e">{{cancelText}}</view><view class="u-picker__title data-v-70102400">{{title}}</view><view class="u-btn-picker u-btn-picker--primary data-v-70102400" style="{{'color:'+(moving?cancelColor:confirmColor)+';'}}" hover-class="u-opacity" hover-stay-time="{{150}}" data-event-opts="{{[['touchmove',[['',['$event']]]],['tap',[['getResult',['confirm']]]]]}}" catchtouchmove="__e" catchtap="__e">{{''+confirmText+''}}</view></view><view class="u-picker-body data-v-70102400"><block wx:if="{{mode=='region'}}"><picker-view class="u-picker-view data-v-70102400" value="{{valueArr}}" data-event-opts="{{[['change',[['change',['$event']]]],['pickstart',[['pickstart',['$event']]]],['pickend',[['pickend',['$event']]]]]}}" bindchange="__e" bindpickstart="__e" bindpickend="__e"><block wx:if="{{!reset&¶ms.province}}"><picker-view-column class="data-v-70102400"><block wx:for="{{provinces}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="u-column-item data-v-70102400"><view class="u-line-1 data-v-70102400">{{item.label}}</view></view></block></picker-view-column></block><block wx:if="{{!reset&¶ms.city}}"><picker-view-column class="data-v-70102400"><block wx:for="{{citys}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="u-column-item data-v-70102400"><view class="u-line-1 data-v-70102400">{{item.label}}</view></view></block></picker-view-column></block><block wx:if="{{!reset&¶ms.area}}"><picker-view-column class="data-v-70102400"><block wx:for="{{areas}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="u-column-item data-v-70102400"><view class="u-line-1 data-v-70102400">{{item.label}}</view></view></block></picker-view-column></block></picker-view></block><block wx:else><block wx:if="{{mode=='time'}}"><picker-view class="u-picker-view data-v-70102400" value="{{valueArr}}" data-event-opts="{{[['change',[['change',['$event']]]],['pickstart',[['pickstart',['$event']]]],['pickend',[['pickend',['$event']]]]]}}" bindchange="__e" bindpickstart="__e" bindpickend="__e"><block wx:if="{{!reset&¶ms.year}}"><picker-view-column class="data-v-70102400"><block wx:for="{{years}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="u-column-item data-v-70102400">{{''+item+''}}<block wx:if="{{showTimeTag}}"><text class="u-text data-v-70102400">年</text></block></view></block></picker-view-column></block><block wx:if="{{!reset&¶ms.month}}"><picker-view-column class="data-v-70102400"><block wx:for="{{$root.l0}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="u-column-item data-v-70102400">{{''+item.m0+''}}<block wx:if="{{showTimeTag}}"><text class="u-text data-v-70102400">月</text></block></view></block></picker-view-column></block><block wx:if="{{!reset&¶ms.day}}"><picker-view-column class="data-v-70102400"><block wx:for="{{$root.l1}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="u-column-item data-v-70102400">{{''+item.m1+''}}<block wx:if="{{showTimeTag}}"><text class="u-text data-v-70102400">日</text></block></view></block></picker-view-column></block><block wx:if="{{!reset&¶ms.hour}}"><picker-view-column class="data-v-70102400"><block wx:for="{{$root.l2}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="u-column-item data-v-70102400">{{''+item.m2+''}}<block wx:if="{{showTimeTag}}"><text class="u-text data-v-70102400">时</text></block></view></block></picker-view-column></block><block wx:if="{{!reset&¶ms.minute}}"><picker-view-column class="data-v-70102400"><block wx:for="{{$root.l3}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="u-column-item data-v-70102400">{{''+item.m3+''}}<block wx:if="{{showTimeTag}}"><text class="u-text data-v-70102400">分</text></block></view></block></picker-view-column></block><block wx:if="{{!reset&¶ms.second}}"><picker-view-column class="data-v-70102400"><block wx:for="{{$root.l4}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="u-column-item data-v-70102400">{{''+item.m4+''}}<block wx:if="{{showTimeTag}}"><text class="u-text data-v-70102400">秒</text></block></view></block></picker-view-column></block></picker-view></block><block wx:else><block wx:if="{{mode=='selector'}}"><picker-view class="u-picker-view data-v-70102400" value="{{valueArr}}" data-event-opts="{{[['change',[['change',['$event']]]],['pickstart',[['pickstart',['$event']]]],['pickend',[['pickend',['$event']]]]]}}" bindchange="__e" bindpickstart="__e" bindpickend="__e"><block wx:if="{{!reset}}"><picker-view-column class="data-v-70102400"><block wx:for="{{$root.l5}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="u-column-item data-v-70102400"><view class="u-line-1 data-v-70102400">{{item.m5}}</view></view></block></picker-view-column></block></picker-view></block><block wx:else><block wx:if="{{mode=='multiSelector'}}"><picker-view class="u-picker-view data-v-70102400" value="{{valueArr}}" data-event-opts="{{[['change',[['change',['$event']]]],['pickstart',[['pickstart',['$event']]]],['pickend',[['pickend',['$event']]]]]}}" bindchange="__e" bindpickstart="__e" bindpickend="__e"><block wx:for="{{$root.l7}}" wx:for-item="item" wx:for-index="index" wx:key="index"><block wx:if="{{!reset}}"><picker-view-column class="data-v-70102400"><block wx:for="{{item.l6}}" wx:for-item="item1" wx:for-index="index1" wx:key="index1"><view class="u-column-item data-v-70102400"><view class="u-line-1 data-v-70102400">{{item1.m6}}</view></view></block></picker-view-column></block></block></picker-view></block></block></block></block></view></view></u-popup>