We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9a4b758 commit 8168d14Copy full SHA for 8168d14
packages/calendar/src/date-table.vue
@@ -124,7 +124,8 @@ export default {
124
let firstDay = getFirstDayOfMonth(date);
125
firstDay = firstDay === 0 ? 7 : firstDay;
126
const firstDayOfWeek = typeof this.firstDayOfWeek === 'number' ? this.firstDayOfWeek : 1;
127
- const prevMonthDays = getPrevMonthLastDays(date, firstDay - firstDayOfWeek).map(day => ({
+ const offset = (7 + firstDay - firstDayOfWeek) % 7;
128
+ const prevMonthDays = getPrevMonthLastDays(date, offset).map(day => ({
129
text: day,
130
type: 'prev'
131
}));
0 commit comments