mirror of
https://github.com/tenrok/vue2-datepicker.git
synced 2026-06-10 18:22:27 +03:00
修复dateTimer提前关闭bug
This commit is contained in:
@@ -226,7 +226,6 @@ export default {
|
||||
if ((!this.range && val) || (this.range && val[0] && val[1])) {
|
||||
this.$emit('input', val)
|
||||
this.$emit('change', val)
|
||||
this.closePopup()
|
||||
}
|
||||
},
|
||||
confirmDate () {
|
||||
@@ -238,6 +237,7 @@ export default {
|
||||
if (!this.confirm && !this.disabled) {
|
||||
this.updateDate()
|
||||
if (!show && this.type === 'date' && !this.range) {
|
||||
console.log('show')
|
||||
this.closePopup()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user