Week starts on Monday despite locale (contiguous weekends).
This commit is contained in:
parent
62f9097ac0
commit
407e87e0f9
@ -1,10 +1,5 @@
|
|||||||
import { defineStore } from 'pinia'
|
import { defineStore } from 'pinia'
|
||||||
import {
|
import { toLocalString, fromLocalString, getLocaleWeekendDays } from '@/utils/date'
|
||||||
toLocalString,
|
|
||||||
fromLocalString,
|
|
||||||
getLocaleFirstDay,
|
|
||||||
getLocaleWeekendDays,
|
|
||||||
} from '@/utils/date'
|
|
||||||
|
|
||||||
const MIN_YEAR = 1900
|
const MIN_YEAR = 1900
|
||||||
const MAX_YEAR = 2100
|
const MAX_YEAR = 2100
|
||||||
@ -19,7 +14,7 @@ export const useCalendarStore = defineStore('calendar', {
|
|||||||
select_days: 1000,
|
select_days: 1000,
|
||||||
min_year: MIN_YEAR,
|
min_year: MIN_YEAR,
|
||||||
max_year: MAX_YEAR,
|
max_year: MAX_YEAR,
|
||||||
first_day: getLocaleFirstDay(),
|
first_day: 1, // Force Monday as week start
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user