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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user