uni-calendar.wxml 3.7 KB

1
  1. <view data-event-opts="{{[['touchmove',[['clean',['$event']]]]]}}" class="uni-calendar data-v-225fb363" catchtouchmove="__e"><block wx:if="{{!insert&&show}}"><view data-event-opts="{{[['tap',[['clean',['$event']]]]]}}" class="{{['uni-calendar__mask','data-v-225fb363',(aniMaskShow)?'uni-calendar--mask-show':'']}}" bindtap="__e"></view></block><block wx:if="{{insert||show}}"><view class="{{['uni-calendar__content','data-v-225fb363',(!insert)?'uni-calendar--fixed':'',(aniMaskShow)?'uni-calendar--ani-show':'']}}"><block wx:if="{{!insert}}"><view class="uni-calendar__header uni-calendar--fixed-top data-v-225fb363"><view data-event-opts="{{[['tap',[['close',['$event']]]]]}}" class="uni-calendar__header-btn-box data-v-225fb363" bindtap="__e"><text class="uni-calendar__header-text uni-calendar--fixed-width data-v-225fb363">{{$root.m0}}</text></view><view data-event-opts="{{[['tap',[['confirm',['$event']]]]]}}" class="uni-calendar__header-btn-box data-v-225fb363" bindtap="__e"><text class="uni-calendar__header-text uni-calendar--fixed-width data-v-225fb363">{{$root.m1}}</text></view></view></block><view class="uni-calendar__header data-v-225fb363"><view data-event-opts="{{[['tap',[['pre',['$event']]]]]}}" class="uni-calendar__header-btn-box data-v-225fb363" bindtap="__e"><view class="uni-calendar__header-btn uni-calendar--left data-v-225fb363"></view></view><text class="uni-calendar__header-text data-v-225fb363">{{(nowDate.year||'')+$root.m2+(nowDate.month||'')+$root.m3}}</text><view data-event-opts="{{[['tap',[['next',['$event']]]]]}}" class="uni-calendar__header-btn-box data-v-225fb363" bindtap="__e"><view class="uni-calendar__header-btn uni-calendar--right data-v-225fb363"></view></view><text data-event-opts="{{[['tap',[['backtoday',['$event']]]]]}}" class="uni-calendar__backtoday data-v-225fb363" bindtap="__e">{{$root.m4}}</text></view><view class="uni-calendar__box data-v-225fb363"><block wx:if="{{showMonth}}"><view class="uni-calendar__box-bg data-v-225fb363"><text class="uni-calendar__box-bg-text data-v-225fb363">{{nowDate.month}}</text></view></block><view class="uni-calendar__weeks data-v-225fb363"><view class="uni-calendar__weeks-day data-v-225fb363"><text class="uni-calendar__weeks-day-text data-v-225fb363">{{$root.m5}}</text></view><view class="uni-calendar__weeks-day data-v-225fb363"><text class="uni-calendar__weeks-day-text data-v-225fb363">{{$root.m6}}</text></view><view class="uni-calendar__weeks-day data-v-225fb363"><text class="uni-calendar__weeks-day-text data-v-225fb363">{{$root.m7}}</text></view><view class="uni-calendar__weeks-day data-v-225fb363"><text class="uni-calendar__weeks-day-text data-v-225fb363">{{$root.m8}}</text></view><view class="uni-calendar__weeks-day data-v-225fb363"><text class="uni-calendar__weeks-day-text data-v-225fb363">{{$root.m9}}</text></view><view class="uni-calendar__weeks-day data-v-225fb363"><text class="uni-calendar__weeks-day-text data-v-225fb363">{{$root.m10}}</text></view><view class="uni-calendar__weeks-day data-v-225fb363"><text class="uni-calendar__weeks-day-text data-v-225fb363">{{$root.m11}}</text></view></view><block wx:for="{{weeks}}" wx:for-item="item" wx:for-index="weekIndex" wx:key="weekIndex"><view class="uni-calendar__weeks data-v-225fb363"><block wx:for="{{item}}" wx:for-item="weeks" wx:for-index="weeksIndex" wx:key="weeksIndex"><view class="uni-calendar__weeks-item data-v-225fb363"><uni-calendar-item vue-id="{{'393d1bd2-1-'+weekIndex+'-'+weeksIndex}}" weeks="{{weeks}}" calendar="{{calendar}}" selected="{{selected}}" lunar="{{lunar}}" data-event-opts="{{[['^change',[['choiceDate']]]]}}" bind:change="__e" class="data-v-225fb363" bind:__l="__l"></uni-calendar-item></view></block></view></block></view></view></block></view>