Fixed #134 - Error with calendar year navigator
parent
4f38ce0e4f
commit
10e16f7afd
|
@ -2071,6 +2071,7 @@ export default {
|
||||||
return this.dateFormat || this.locale.dateFormat;
|
return this.dateFormat || this.locale.dateFormat;
|
||||||
},
|
},
|
||||||
yearOptions() {
|
yearOptions() {
|
||||||
|
if (this.yearRange) {
|
||||||
let $vm = this;
|
let $vm = this;
|
||||||
const years = this.yearRange.split(':');
|
const years = this.yearRange.split(':');
|
||||||
let yearStart = parseInt(years[0]);
|
let yearStart = parseInt(years[0]);
|
||||||
|
@ -2089,6 +2090,10 @@ export default {
|
||||||
}
|
}
|
||||||
|
|
||||||
return yearOptions;
|
return yearOptions;
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
},
|
},
|
||||||
monthPickerValues() {
|
monthPickerValues() {
|
||||||
let monthPickerValues = [];
|
let monthPickerValues = [];
|
||||||
|
|
Loading…
Reference in New Issue