Skip to content

Commit b6ac7f1

Browse files
author
weifeiyue
committed
bug fix
1 parent cf2ebdc commit b6ac7f1

5 files changed

+6
-6
lines changed

dist/vue-datepicker-local.css

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/vue-datepicker-local.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vue-datepicker-local",
3-
"version": "1.0.16",
3+
"version": "1.0.17",
44
"description": "A datepicker for Vue.js",
55
"main": "src/index.js",
66
"files": [

src/VueDatepickerLocalCalendar.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ export default {
228228
month = time.month
229229
}
230230
const _time = new Date(year || $this.year, month || $this.month, $this.day, $this.hour, $this.minute, $this.second)
231-
if ($this.left && _time > $this.start) {
231+
if ($this.left && parseInt(_time.getTime() / 1000) > $this.end) {
232232
this.$parent.dates[1] = _time
233233
}
234234
$this.$emit('input', _time)

webpack.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ const path = require('path')
22
const webpack = require('webpack')
33
const ExtractTextPlugin = require('extract-text-webpack-plugin')
44
const banner =
5-
'vue-datetime-local.js v1.0.16\n' +
5+
'vue-datetime-local.js v1.0.17\n' +
66
'(c) 2017-' + new Date().getFullYear() + ' weifeiyue\n' +
77
'Released under the MIT License.'
88
module.exports = {

0 commit comments

Comments
 (0)