calendar.wxml 932 B

1234567891011121314
  1. <wxs src="./index.wxs" module="computed"></wxs>
  2. <template name="calendar">
  3. <view class="calendar-container">
  4. <header showTitle="{{ showTitle }}" showSubtitle="{{ showSubtitle }}" title="{{ title }}" subTitle="{{ subTitle }}"></header>
  5. <scroll-view class="calendar-body-wrap" scroll-y scroll-into-view="{{ scrollIntoViewIndex }}">
  6. <mounth wx:for="{{ computed.getMonths(minDate, maxDate) }}" wx:key="index" id="month{{ index }}" class="month" data-date="{{ item }}" date="{{ item }}" minDate="{{ minDate }}" maxDate="{{ maxDate }}" currentDate="{{ currentDate }}" type="{{ type }}" bind:clickDay="clickDay" showMonthTitle="{{ index !== 0 }}" formatter="{{ formatter }}" color="{{ color }}">
  7. </mounth>
  8. </scroll-view>
  9. <view>
  10. <l-button type="default" l-class="bottom-button" size="long" bind:lintap="onClickConfirm" bg-color="{{ color }}">{{confirmText}}</l-button>
  11. </view>
  12. </view>
  13. </template>