vue-multi-picker
Advanced tools
Comparing version 0.0.8 to 0.0.9
@@ -125,6 +125,10 @@ 'use strict'; | ||
this.nextStart = day; | ||
} else { | ||
this.nextStart = null; | ||
} | ||
} else { | ||
if (!this.restrict(this.nextRange)) { | ||
this.nextEnd = day.clone().endOf('d'); | ||
} else if (this.nextStart) { | ||
var prevNextEnd = this.nextEnd; | ||
this.nextEnd = day.clone().endOf('d'); | ||
if (this.restrict(this.nextRange)) { | ||
this.nextEnd = prevNextEnd; | ||
} | ||
@@ -157,4 +161,5 @@ } | ||
data: function data() { | ||
var period = this.selected ? this.selected.end.clone().startOf('M') : moment({ d: 1 }); | ||
return { | ||
period: moment({ d: 1 }), | ||
period: period, | ||
nextStart: null, | ||
@@ -213,5 +218,4 @@ nextEnd: null | ||
data: function data() { | ||
return { | ||
period: moment({ d: 1 }) | ||
}; | ||
var period = this.selected ? this.selected.end.clone().startOf('M') : moment({ d: 1 }); | ||
return { period: period }; | ||
}, | ||
@@ -280,5 +284,4 @@ | ||
data: function data() { | ||
return { | ||
period: moment({ M: 0, d: 1 }) | ||
}; | ||
var period = this.selected ? this.selected.end.clone().startOf('y') : moment({ M: 0, d: 1 }); | ||
return { period: period }; | ||
}, | ||
@@ -285,0 +288,0 @@ |
{ | ||
"name": "vue-multi-picker", | ||
"version": "0.0.8", | ||
"version": "0.0.9", | ||
"description": "A multi function date picker", | ||
@@ -5,0 +5,0 @@ "keywords": "datepicker weekpicker monthpicker", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
28135
396