mirror of
https://github.com/tenrok/vue2-datepicker.git
synced 2026-06-21 03:50:35 +03:00
fix: unable set value later when range is ture (#209)
This commit is contained in:
+6
-2
@@ -258,12 +258,16 @@ export default {
|
||||
return date.getTime()
|
||||
},
|
||||
inBefore (time, startAt) {
|
||||
startAt = startAt || this.startAt
|
||||
if (startAt === undefined) {
|
||||
startAt = this.startAt
|
||||
}
|
||||
return (this.notBeforeTime && time < this.notBeforeTime) ||
|
||||
(startAt && time < this.getCriticalTime(startAt))
|
||||
},
|
||||
inAfter (time, endAt) {
|
||||
endAt = endAt || this.endAt
|
||||
if (endAt === undefined) {
|
||||
endAt = this.endAt
|
||||
}
|
||||
return (this.notAfterTime && time > this.notAfterTime) ||
|
||||
(endAt && time > this.getCriticalTime(endAt))
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user