mirror of
https://github.com/tenrok/vue2-datepicker.git
synced 2026-06-14 17:12:27 +03:00
fix: not-before
This commit is contained in:
@@ -259,8 +259,8 @@ export default {
|
||||
const now = new Date(date).getTime()
|
||||
if (
|
||||
this.$parent.disabledDays.some(v => new Date(v).setHours(0, 0, 0, 0) === now) ||
|
||||
this.$parent.notBefore !== '' && now < new Date(this.$parent.notBefore).getTime() ||
|
||||
this.$parent.notAfter !== '' && now > new Date(this.$parent.notAfter).getTime() ||
|
||||
this.$parent.notBefore !== '' && now < new Date(this.$parent.notBefore).setHours(0, 0, 0, 0) ||
|
||||
this.$parent.notAfter !== '' && now > new Date(this.$parent.notAfter).setHours(0, 0, 0, 0) ||
|
||||
this.startAt && now < new Date(this.startAt).setHours(0, 0, 0, 0) ||
|
||||
this.endAt && now > new Date(this.endAt).setHours(0, 0, 0, 0)
|
||||
) {
|
||||
|
||||
Reference in New Issue
Block a user