| | |
| | | v-if="showSubtitle" |
| | | >{{ subtitle }}</text> |
| | | <view class="u-calendar-header__weekdays"> |
| | | <text class="u-calendar-header__weekdays__weekday">一</text> |
| | | <text class="u-calendar-header__weekdays__weekday">二</text> |
| | | <text class="u-calendar-header__weekdays__weekday">三</text> |
| | | <text class="u-calendar-header__weekdays__weekday">四</text> |
| | | <text class="u-calendar-header__weekdays__weekday">五</text> |
| | | <text class="u-calendar-header__weekdays__weekday">六</text> |
| | | <text class="u-calendar-header__weekdays__weekday">日</text> |
| | | <text class="u-calendar-header__weekdays__weekday">{{ weekText[0] }}</text> |
| | | <text class="u-calendar-header__weekdays__weekday">{{ weekText[1] }}</text> |
| | | <text class="u-calendar-header__weekdays__weekday">{{ weekText[2] }}</text> |
| | | <text class="u-calendar-header__weekdays__weekday">{{ weekText[3] }}</text> |
| | | <text class="u-calendar-header__weekdays__weekday">{{ weekText[4] }}</text> |
| | | <text class="u-calendar-header__weekdays__weekday">{{ weekText[5] }}</text> |
| | | <text class="u-calendar-header__weekdays__weekday">{{ weekText[6] }}</text> |
| | | </view> |
| | | </view> |
| | | </template> |
| | |
| | | type: Boolean, |
| | | default: true |
| | | }, |
| | | // 星期文本 |
| | | weekText: { |
| | | type: Array, |
| | | default: () => { |
| | | return ['一', '二', '三', '四', '五', '六', '日'] |
| | | } |
| | | }, |
| | | }, |
| | | data() { |
| | | return { |