纸通宝SAAS仓库
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.
 

35 lines
2.1 KiB

<view class="van-calendar">
<header title="{{ title }}" showTitle="{{ showTitle }}" subtitle="{{ subtitle }}" showSubtitle="{{ showSubtitle }}">
<slot name="title" slot="title"></slot>
</header>
<scroll-view class="van-calendar__body" scroll-y scroll-into-view="{{ scrollIntoView }}" scroll-top="{{ top }}">
<month wx:for="{{ computed.getMonths(minDate, maxDate) }}" wx:key="index" id="month{{ index }}" class="month"
data-date="{{ item }}" date="{{ item }}" type="{{ type }}" color="{{ color }}" index="{{ index }}" minDate="{{ minDate }}"
maxDate="{{ maxDate }}" showMark="{{ showMark }}" formatter="{{ formatter }}" rowHeight="{{ rowHeight }}"
currentDate="{{ currentDate }}" showSubtitle="{{ showSubtitle }}" allowSameDay="{{ allowSameDay }}"
showMonthTitle="{{ index !== 0 || !showSubtitle }}" bind:click="onClickDay" />
</scroll-view>
<!-- <swiper current="{{0}}" class="van-calendar__body">
<swiper-item wx:for="{{ computed.getMonths(minDate, maxDate) }}" wx:key="index">
<month id="month{{ index }}" class="month" data-date="{{ item }}" date="{{ item }}" type="{{ type }}"
color="{{ color }}" index="{{ index }}" minDate="{{ minDate }}" maxDate="{{ maxDate }}"
showMark="{{ showMark }}" formatter="{{ formatter }}" rowHeight="{{ rowHeight }}"
currentDate="{{ currentDate }}" showSubtitle="{{ showSubtitle }}" allowSameDay="{{ allowSameDay }}"
showMonthTitle="{{ index !== 0 || !showSubtitle }}" bind:click="onClickDay" />
</swiper-item>
</swiper> -->
<view class="{{ utils.bem('calendar__footer', { safeAreaInsetBottom }) }}">
<slot name="footer"></slot>
</view>
<view class="{{ utils.bem('calendar__footer', { safeAreaInsetBottom }) }}">
<van-button wx:if="{{ showConfirm }}" round block type="danger" color="{{ color }}"
custom-class="van-calendar__confirm" disabled="{{ computed.getButtonDisabled(type, currentDate) }}"
nativeType="text" bind:click="onConfirm">
{{ computed.getButtonDisabled(type, currentDate) ? confirmDisabledText : confirmText }}
</van-button>
</view>
</view>