Increase selectable range to 20 months in calendar
This commit is contained in:
1 parent
f103ea21c7
commit
ada31e0b6d
1 file changed
+1
-1
@@ -73,7 +73,7 @@
|
|||||||
const months = [];
|
const months = [];
|
||||||
let month = this.startDate.month();
|
let month = this.startDate.month();
|
||||||
let year = this.startDate.year();
|
let year = this.startDate.year();
|
||||||
for (let i = 1; i <= 12; i++) {
|
for (let i = 1; i <= 20; i++) {
|
||||||
months.push(dayjs().set('year', year).set('month', month));
|
months.push(dayjs().set('year', year).set('month', month));
|
||||||
if (month < 12) {
|
if (month < 12) {
|
||||||
month++;
|
month++;
|
||||||
|
|||||||
Reference in new issue
Block a user