Commit 20c7cc9c authored by 好多大米's avatar 好多大米 Committed by GitHub

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

fix: fix calendar component i18n bug
parents 061dfa3d 8d1d5c57
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment