运维小程序
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

calendar-header.wxml 1.5KB

123456789101112131415161718192021
  1. <wxs src="../common/utils.wxs" module="_" /><template name="calendar-header">
  2. <view class="{{tClass}} {{classPrefix}} {{switchMode !== 'none' ? classPrefix + '__with-action' : ''}}" id="{{tId}}">
  3. <view class="{{classPrefix}}__action" wx:if="{{switchMode !== 'none'}}">
  4. <view wx:if="{{switchMode === 'year-month'}}" class="{{_.cls(classPrefix + '__icon', [['disabled', preYearBtnDisable]])}}" data-disabled="{{preYearBtnDisable}}" data-type="pre-year" bindtap="handleSwitchModeChange">
  5. <t-icon name="chevron-left-double" />
  6. </view>
  7. <view class="{{_.cls(classPrefix + '__icon', [['disabled', prevMonthBtnDisable]])}}" data-disabled="{{prevMonthBtnDisable}}" data-type="pre-month" bindtap="handleSwitchModeChange">
  8. <t-icon name="chevron-left" />
  9. </view>
  10. </view>
  11. <view class="{{classPrefix}}__title">{{ title }}</view>
  12. <view class="{{classPrefix}}__action" wx:if="{{switchMode !== 'none'}}">
  13. <view class="{{_.cls(classPrefix + '__icon', [['disabled', nextMonthBtnDisable]])}}" data-disabled="{{nextMonthBtnDisable}}" data-type="next-month" bindtap="handleSwitchModeChange">
  14. <t-icon name="chevron-right" />
  15. </view>
  16. <view wx:if="{{switchMode === 'year-month'}}" class="{{_.cls(classPrefix + '__icon', [['disabled', nextYearBtnDisable]])}}" data-disabled="{{nextYearBtnDisable}}" data-type="next-year" bindtap="handleSwitchModeChange">
  17. <t-icon name="chevron-right-double" />
  18. </view>
  19. </view>
  20. </view>
  21. </template>