u-picker.axml
6.0 KB
<u-popup vue-id="36fc52dc-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',[]]]]]]}}" onClose="__e" onInput="__e" class="data-v-70102400" onVueInit="__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']]]]]}}" onTap="__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 a: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']]]]]}}" onChange="__e" onPickstart="__e" onPickend="__e"><block a:if="{{!reset&¶ms.province}}"><picker-view-column class="data-v-70102400"><view class="u-column-item data-v-70102400" a:for="{{provinces}}" a:for-item="item" a:for-index="index" a:key="index"><view class="u-line-1 data-v-70102400">{{item.label}}</view></view></picker-view-column></block><block a:if="{{!reset&¶ms.city}}"><picker-view-column class="data-v-70102400"><view class="u-column-item data-v-70102400" a:for="{{citys}}" a:for-item="item" a:for-index="index" a:key="index"><view class="u-line-1 data-v-70102400">{{item.label}}</view></view></picker-view-column></block><block a:if="{{!reset&¶ms.area}}"><picker-view-column class="data-v-70102400"><view class="u-column-item data-v-70102400" a:for="{{areas}}" a:for-item="item" a:for-index="index" a:key="index"><view class="u-line-1 data-v-70102400">{{item.label}}</view></view></picker-view-column></block></picker-view></block><block a:else><block a: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']]]]]}}" onChange="__e" onPickstart="__e" onPickend="__e"><block a:if="{{!reset&¶ms.year}}"><picker-view-column class="data-v-70102400"><view class="u-column-item data-v-70102400" a:for="{{years}}" a:for-item="item" a:for-index="index" a:key="index">{{''+item+''}}<block a:if="{{showTimeTag}}"><text class="u-text data-v-70102400">年</text></block></view></picker-view-column></block><block a:if="{{!reset&¶ms.month}}"><picker-view-column class="data-v-70102400"><view class="u-column-item data-v-70102400" a:for="{{$root.l0}}" a:for-item="item" a:for-index="index" a:key="index">{{''+item.m0+''}}<block a:if="{{showTimeTag}}"><text class="u-text data-v-70102400">月</text></block></view></picker-view-column></block><block a:if="{{!reset&¶ms.day}}"><picker-view-column class="data-v-70102400"><view class="u-column-item data-v-70102400" a:for="{{$root.l1}}" a:for-item="item" a:for-index="index" a:key="index">{{''+item.m1+''}}<block a:if="{{showTimeTag}}"><text class="u-text data-v-70102400">日</text></block></view></picker-view-column></block><block a:if="{{!reset&¶ms.hour}}"><picker-view-column class="data-v-70102400"><view class="u-column-item data-v-70102400" a:for="{{$root.l2}}" a:for-item="item" a:for-index="index" a:key="index">{{''+item.m2+''}}<block a:if="{{showTimeTag}}"><text class="u-text data-v-70102400">时</text></block></view></picker-view-column></block><block a:if="{{!reset&¶ms.minute}}"><picker-view-column class="data-v-70102400"><view class="u-column-item data-v-70102400" a:for="{{$root.l3}}" a:for-item="item" a:for-index="index" a:key="index">{{''+item.m3+''}}<block a:if="{{showTimeTag}}"><text class="u-text data-v-70102400">分</text></block></view></picker-view-column></block><block a:if="{{!reset&¶ms.second}}"><picker-view-column class="data-v-70102400"><view class="u-column-item data-v-70102400" a:for="{{$root.l4}}" a:for-item="item" a:for-index="index" a:key="index">{{''+item.m4+''}}<block a:if="{{showTimeTag}}"><text class="u-text data-v-70102400">秒</text></block></view></picker-view-column></block></picker-view></block><block a:else><block a: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']]]]]}}" onChange="__e" onPickstart="__e" onPickend="__e"><block a:if="{{!reset}}"><picker-view-column class="data-v-70102400"><view class="u-column-item data-v-70102400" a:for="{{$root.l5}}" a:for-item="item" a:for-index="index" a:key="index"><view class="u-line-1 data-v-70102400">{{item.m5}}</view></view></picker-view-column></block></picker-view></block><block a:else><block a: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']]]]]}}" onChange="__e" onPickstart="__e" onPickend="__e"><block a:for="{{$root.l7}}" a:for-item="item" a:for-index="index" a:key="index"><block a:if="{{!reset}}"><picker-view-column class="data-v-70102400"><view class="u-column-item data-v-70102400" a:for="{{item.l6}}" a:for-item="item1" a:for-index="index1" a:key="index1"><view class="u-line-1 data-v-70102400">{{item1.m6}}</view></view></picker-view-column></block></block></picker-view></block></block></block></block></view></view></u-popup>