Merge pull request #20758 from iamkun/fix/calendar-i18n

fix: fix calendar component i18n bug
pull/20779/head
好多大米 2021-02-10 20:59:15 +08:00 committed by GitHub
commit 20c7cc9c50
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 6 deletions

View File

@ -20,12 +20,6 @@ export default {
inject: ['elCalendar'],
data() {
return {
WEEK_DAYS: getI18nSettings().dayNames
};
},
methods: {
toNestedArr(days) {
return rangeArr(days.length / 7).map((_, index) => {
@ -83,6 +77,9 @@ export default {
},
computed: {
WEEK_DAYS() {
return getI18nSettings().dayNames;
},
prevMonthDatePrefix() {
const temp = new Date(this.date.getTime());
temp.setDate(0);