mirror of
https://github.com/tenrok/vue2-datepicker.git
synced 2026-06-24 00:50:36 +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])) {
|
if ((!this.range && val) || (this.range && val[0] && val[1])) {
|
||||||
this.$emit('input', val)
|
this.$emit('input', val)
|
||||||
this.$emit('change', val)
|
this.$emit('change', val)
|
||||||
this.closePopup()
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
confirmDate () {
|
confirmDate () {
|
||||||
@@ -238,6 +237,7 @@ export default {
|
|||||||
if (!this.confirm && !this.disabled) {
|
if (!this.confirm && !this.disabled) {
|
||||||
this.updateDate()
|
this.updateDate()
|
||||||
if (!show && this.type === 'date' && !this.range) {
|
if (!show && this.type === 'date' && !this.range) {
|
||||||
|
console.log('show')
|
||||||
this.closePopup()
|
this.closePopup()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user