u-calendar.axml
4.3 KB
<u-popup vue-id="115fab9c-1" maskCloseAble="{{maskCloseAble}}" mode="bottom" popup="{{false}}" length="auto" safeAreaInsetBottom="{{safeAreaInsetBottom}}" z-index="{{uZIndex}}" border-radius="{{borderRadius}}" closeable="{{closeable}}" value="{{value}}" data-event-opts="{{[['^close',[['close']]],['^input',[['__set_model',['','value','$event',[]]]]]]}}" onClose="__e" onInput="__e" class="data-v-5b667d40" onVueInit="__l" vue-slots="{{['default']}}"><view class="u-calendar data-v-5b667d40"><view class="u-calendar__header data-v-5b667d40"><block a:if="{{!$slots['tooltip']}}"><view class="u-calendar__header__text data-v-5b667d40">{{''+toolTip+''}}</view></block><block a:else><slot name="tooltip"></slot></block></view><view class="u-calendar__action u-flex u-row-center data-v-5b667d40"><view class="u-calendar__action__icon data-v-5b667d40"><block a:if="{{changeYear}}"><u-icon vue-id="{{('115fab9c-2')+','+('115fab9c-1')}}" name="arrow-left-double" color="{{yearArrowColor}}" data-event-opts="{{[['^click',[['changeYearHandler',[0]]]]]}}" onClick="__e" class="data-v-5b667d40" onVueInit="__l"></u-icon></block></view><view class="u-calendar__action__icon data-v-5b667d40"><block a:if="{{changeMonth}}"><u-icon vue-id="{{('115fab9c-3')+','+('115fab9c-1')}}" name="arrow-left" color="{{monthArrowColor}}" data-event-opts="{{[['^click',[['changeMonthHandler',[0]]]]]}}" onClick="__e" class="data-v-5b667d40" onVueInit="__l"></u-icon></block></view><view class="u-calendar__action__text data-v-5b667d40">{{showTitle}}</view><view class="u-calendar__action__icon data-v-5b667d40"><block a:if="{{changeMonth}}"><u-icon vue-id="{{('115fab9c-4')+','+('115fab9c-1')}}" name="arrow-right" color="{{monthArrowColor}}" data-event-opts="{{[['^click',[['changeMonthHandler',[1]]]]]}}" onClick="__e" class="data-v-5b667d40" onVueInit="__l"></u-icon></block></view><view class="u-calendar__action__icon data-v-5b667d40"><block a:if="{{changeYear}}"><u-icon vue-id="{{('115fab9c-5')+','+('115fab9c-1')}}" name="arrow-right-double" color="{{yearArrowColor}}" data-event-opts="{{[['^click',[['changeYearHandler',[1]]]]]}}" onClick="__e" class="data-v-5b667d40" onVueInit="__l"></u-icon></block></view></view><view class="u-calendar__week-day data-v-5b667d40"><view class="u-calendar__week-day__text data-v-5b667d40" a:for="{{weekDayZh}}" a:for-item="item" a:for-index="index" a:key="index">{{item}}</view></view><view class="u-calendar__content data-v-5b667d40"><block class="data-v-5b667d40" a:for="{{weekdayArr}}" a:for-item="item" a:for-index="index" a:key="index"><view class="u-calendar__content__item data-v-5b667d40"></view></block><view data-event-opts="{{[['tap',[['dateClick',[index]]]]]}}" class="{{((((('u-calendar__content__item')+' '+'data-v-5b667d40')+' '+((item.m0)?'u-hover-class':''))+' '+((mode=='range'&&startDate==year+'-'+month+'-'+(index+1)||mode=='date')?'u-calendar__content--start-date':''))+' '+((mode=='range'&&endDate==year+'-'+month+'-'+(index+1)||mode=='date')?'u-calendar__content--end-date':''))}}" style="{{'background-color:'+(item.m1)+';'}}" onTap="__e" a:for="{{$root.l0}}" a:for-item="item" a:for-index="index" a:key="index"><view class="u-calendar__content__item__inner data-v-5b667d40" style="{{'color:'+(item.m2)+';'}}"><view class="data-v-5b667d40">{{index+1}}</view></view><block a:if="{{mode=='range'&&startDate==year+'-'+month+'-'+(index+1)&&startDate!=endDate}}"><view class="u-calendar__content__item__tips data-v-5b667d40" style="{{'color:'+(activeColor)+';'}}">{{startText}}</view></block><block a:if="{{mode=='range'&&endDate==year+'-'+month+'-'+(index+1)}}"><view class="u-calendar__content__item__tips data-v-5b667d40" style="{{'color:'+(activeColor)+';'}}">{{endText}}</view></block></view><view class="u-calendar__content__bg-month data-v-5b667d40">{{month}}</view></view><view class="u-calendar__bottom data-v-5b667d40"><view class="u-calendar__bottom__choose data-v-5b667d40"><text class="data-v-5b667d40">{{mode=='date'?activeDate:startDate}}</text><block a:if="{{endDate}}"><text class="data-v-5b667d40">{{"至"+endDate}}</text></block></view><view class="u-calendar__bottom__btn data-v-5b667d40"><u-button vue-id="{{('115fab9c-6')+','+('115fab9c-1')}}" type="{{btnType}}" shape="circle" size="default" data-event-opts="{{[['^click',[['btnFix',[false]]]]]}}" onClick="__e" class="data-v-5b667d40" onVueInit="__l" vue-slots="{{['default']}}">确定</u-button></view></view></view></u-popup>