Skip to content

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 BANKA2017 committed Mar 16, 2021
1 parent 7f2b0df commit 13a8294
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 @@ -20,12 +20,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 @@ -83,6 +77,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 13a8294

Please sign in to comment.