Skip to content
This repository has been archived by the owner on Sep 28, 2022. It is now read-only.

Commit

Permalink
fix: fix calendar component i18n bug
Browse files Browse the repository at this point in the history
  • Loading branch information
iamkun authored and CarterLi committed Nov 19, 2021
1 parent d0f0c3f commit 284df55
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions packages/calendar/src/date-table.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,6 @@ export default {
inject: ['elCalendar'],
data() {
return {
WEEK_DAYS: getI18nSettings().dayNames
};
},
methods: {
toNestedArr(days) {
return rangeArr(days.length / 7).map((_, index) => {
Expand Down Expand Up @@ -82,6 +76,9 @@ export default {
},
computed: {
WEEK_DAYS() {
return getI18nSettings().dayNames;
},
prevMonthDatePrefix() {
const temp = new Date(this.date.getTime());
temp.setDate(0);
Expand Down

0 comments on commit 284df55

Please sign in to comment.