mirror of
https://github.com/tenrok/vue2-datepicker.git
synced 2026-06-24 22:50:36 +03:00
修复disabled click
This commit is contained in:
@@ -324,6 +324,10 @@ export default {
|
|||||||
this.currentPanel = 'date'
|
this.currentPanel = 'date'
|
||||||
},
|
},
|
||||||
selectTime (value, index) {
|
selectTime (value, index) {
|
||||||
|
const classes = this.getTimeClasses(value, index)
|
||||||
|
if (classes.indexOf('disabled') !== -1) {
|
||||||
|
return
|
||||||
|
}
|
||||||
const date = new Date(this.now)
|
const date = new Date(this.now)
|
||||||
if (index === 0) {
|
if (index === 0) {
|
||||||
date.setHours(value)
|
date.setHours(value)
|
||||||
|
|||||||
Reference in New Issue
Block a user