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.
1 lines
4.2 KiB
1 lines
4.2 KiB
<view class="w-picker" data-key="{{createKey}}"><view class="{{['mask',(visible)?'visible':'']}}" catchtouchmove="__e" data-event-opts="{{[['tap',[['onCancel',['$event']]]],['touchmove',[['',['$event']]]]]}}" bindtap="__e"></view><view class="{{['w-picker-cnt',(visible)?'visible':'']}}"><view class="w-picker-header" catchtouchmove="__e" data-event-opts="{{[['touchmove',[['',['$event']]]]]}}"><text data-event-opts="{{[['tap',[['onCancel',['$event']]]]]}}" catchtap="__e">取消</text><slot></slot><text data-event-opts="{{[['tap',[['pickerConfirm',['$event']]]]]}}" style="{{'color:'+(themeColor)+';'}}" catchtap="__e">确定</text></view><block wx:if="{{mode=='date'}}"><date-picker class="w-picker-wrapper" vue-id="5073e1fc-1" startYear="{{startYear}}" endYear="{{endYear}}" value="{{value}}" fields="{{fields}}" item-height="{{itemHeight}}" current="{{current}}" disabled-after="{{disabledAfter}}" data-event-opts="{{[['^change',[['handlerChange']]],['^touchstart',[['touchStart']]],['^touchend',[['touchEnd']]]]}}" bind:change="__e" bind:touchstart="__e" bind:touchend="__e" bind:__l="__l"></date-picker></block><block wx:if="{{mode=='range'}}"><range-picker class="w-picker-wrapper" vue-id="5073e1fc-2" startYear="{{startYear}}" endYear="{{endYear}}" value="{{value}}" item-height="{{itemHeight}}" current="{{current}}" data-event-opts="{{[['^change',[['handlerChange']]],['^touchstart',[['touchStart']]],['^touchend',[['touchEnd']]]]}}" bind:change="__e" bind:touchstart="__e" bind:touchend="__e" bind:__l="__l"></range-picker></block><block wx:if="{{mode=='half'}}"><half-picker class="w-picker-wrapper" vue-id="5073e1fc-3" startYear="{{startYear}}" endYear="{{endYear}}" value="{{value}}" item-height="{{itemHeight}}" current="{{current}}" disabled-after="{{disabledAfter}}" data-event-opts="{{[['^change',[['handlerChange']]],['^touchstart',[['touchStart']]],['^touchend',[['touchEnd']]]]}}" bind:change="__e" bind:touchstart="__e" bind:touchend="__e" bind:__l="__l"></half-picker></block><block wx:if="{{mode=='shortTerm'}}"><shortterm-picker class="w-picker-wrapper" vue-id="5073e1fc-4" startYear="{{startYear}}" endYear="{{endYear}}" value="{{value}}" item-height="{{itemHeight}}" current="{{current}}" expand="60" disabled-after="{{disabledAfter}}" data-event-opts="{{[['^change',[['handlerChange']]],['^touchstart',[['touchStart']]],['^touchend',[['touchEnd']]]]}}" bind:change="__e" bind:touchstart="__e" bind:touchend="__e" bind:__l="__l"></shortterm-picker></block><block wx:if="{{mode=='time'}}"><time-picker class="w-picker-wrapper" vue-id="5073e1fc-5" value="{{value}}" item-height="{{itemHeight}}" current="{{current}}" disabled-after="{{disabledAfter}}" second="{{second}}" data-event-opts="{{[['^change',[['handlerChange']]],['^touchstart',[['touchStart']]],['^touchend',[['touchEnd']]]]}}" bind:change="__e" bind:touchstart="__e" bind:touchend="__e" bind:__l="__l"></time-picker></block><block wx:if="{{mode=='selector'}}"><selector-picker class="w-picker-wrapper" vue-id="5073e1fc-6" value="{{value}}" item-height="{{itemHeight}}" options="{{options}}" default-type="{{defaultType}}" default-props="{{defaultProps}}" data-event-opts="{{[['^change',[['handlerChange']]],['^touchstart',[['touchStart']]],['^touchend',[['touchEnd']]]]}}" bind:change="__e" bind:touchstart="__e" bind:touchend="__e" bind:__l="__l"></selector-picker></block><block wx:if="{{mode=='region'}}"><region-picker class="w-picker-wrapper" vue-id="5073e1fc-7" value="{{value}}" hide-area="{{hideArea}}" default-type="{{defaultType}}" item-height="{{itemHeight}}" data-event-opts="{{[['^change',[['handlerChange']]],['^touchstart',[['touchStart']]],['^touchend',[['touchEnd']]]]}}" bind:change="__e" bind:touchstart="__e" bind:touchend="__e" bind:__l="__l"></region-picker></block><block wx:if="{{mode=='linkage'}}"><linkage-picker class="w-picker-wrapper" vue-id="5073e1fc-8" value="{{value}}" options="{{options}}" level="{{level}}" default-type="{{defaultType}}" default-props="{{defaultProps}}" item-height="{{itemHeight}}" data-event-opts="{{[['^change',[['handlerChange']]],['^touchstart',[['touchStart']]],['^touchend',[['touchEnd']]]]}}" bind:change="__e" bind:touchstart="__e" bind:touchend="__e" bind:__l="__l"></linkage-picker></block></view></view> |