mirror of
https://github.com/tenrok/vue2-datepicker.git
synced 2026-06-23 14:50:37 +03:00
Set to 0 hour, compare on 0 hour for notAfter, bump version
This commit is contained in:
@@ -104,7 +104,7 @@ export default {
|
|||||||
function getCalendar (time, firstday, length, classes) {
|
function getCalendar (time, firstday, length, classes) {
|
||||||
return Array.apply(null, { length }).map((v, i) => { // eslint-disable-line
|
return Array.apply(null, { length }).map((v, i) => { // eslint-disable-line
|
||||||
let day = firstday + i
|
let day = firstday + i
|
||||||
const date = new Date(time.getFullYear(), time.getMonth(), day)
|
const date = new Date(time.getFullYear(), time.getMonth(), day, 0, 0, 0)
|
||||||
return {
|
return {
|
||||||
title: date.toLocaleDateString(),
|
title: date.toLocaleDateString(),
|
||||||
iso: cal.isoDate(date),
|
iso: cal.isoDate(date),
|
||||||
@@ -162,7 +162,7 @@ export default {
|
|||||||
classes.push('disabled');
|
classes.push('disabled');
|
||||||
} else if (
|
} else if (
|
||||||
(this.notBefore !== '' && cell.date.getTime() < (new Date(this.notBefore)).getTime()) ||
|
(this.notBefore !== '' && cell.date.getTime() < (new Date(this.notBefore)).getTime()) ||
|
||||||
(this.notAfter !== '' && cell.date.getTime() > (new Date(this.notAfter)).getTime())
|
(this.notAfter !== '' && cell.date.getTime() > (new Date(this.notAfter+' 00:00:00')).getTime())
|
||||||
) {
|
) {
|
||||||
classes.push('disabled');
|
classes.push('disabled');
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -2,7 +2,7 @@
|
|||||||
"name": "vue2-datepicker",
|
"name": "vue2-datepicker",
|
||||||
"description": "A Datepicker Component For Vue2",
|
"description": "A Datepicker Component For Vue2",
|
||||||
"main": "datepicker/index.vue",
|
"main": "datepicker/index.vue",
|
||||||
"version": "1.2.2",
|
"version": "1.2.3",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "cross-env NODE_ENV=development webpack-dev-server --open --hot",
|
"dev": "cross-env NODE_ENV=development webpack-dev-server --open --hot",
|
||||||
"build": "cross-env NODE_ENV=production webpack --progress --hide-modules"
|
"build": "cross-env NODE_ENV=production webpack --progress --hide-modules"
|
||||||
|
|||||||
Reference in New Issue
Block a user