Skip to content

Commit

Permalink
fix(calendar-view): week display error opentiny#1158
Browse files Browse the repository at this point in the history
  • Loading branch information
“Jevin” committed Jan 3, 2024
1 parent 723b07d commit fe90785
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/vue/src/calendar-view/src/pc.vue
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
</div>
<ul class="header-main">
<li v-for="day in state.weekDays" :key="day">
<span>{{ t(`ui.calendarView.weekDays[${day}]`) }}</span>
<span>{{ t(`ui.calendarView.weekDays.${day}`) }}</span>
</li>
</ul>
<div class="header-right" @click="goNextMonth">
Expand Down Expand Up @@ -111,7 +111,7 @@
name="header"
:slot-scope="{
date: date.value,
weekDay: t(`ui.calendarView.weekDays[${index}]`)
weekDay: t(`ui.calendarView.weekDays.${index}`)
}"
>
<span class="date" :class="dateIsToday(date.value) && 'is-today'">
Expand All @@ -123,7 +123,7 @@
></span>
</span>
<span class="week-day" :class="dateIsToday(date.value) && 'is-today'">{{
dateIsToday(date.value) ? t('ui.datepicker.today') : t(`ui.calendarView.weekDays[${index}]`)
dateIsToday(date.value) ? t('ui.datepicker.today') : t(`ui.calendarView.weekDays.${index}`)
}}</span>
</slot>
</li>
Expand Down

0 comments on commit fe90785

Please sign in to comment.