2
0
mirror of https://github.com/tenrok/vue2-datepicker.git synced 2026-06-16 19:20:34 +03:00

修复disabled click

This commit is contained in:
mxie
2017-11-03 10:35:41 +08:00
parent 73438e4558
commit 7c4601ff2e
+4
View File
@@ -324,6 +324,10 @@ export default {
this.currentPanel = 'date'
},
selectTime (value, index) {
const classes = this.getTimeClasses(value, index)
if (classes.indexOf('disabled') !== -1) {
return
}
const date = new Date(this.now)
if (index === 0) {
date.setHours(value)