Increase selectable range to 20 months in calendar
This commit is contained in:
@@ -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