2
0
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:
mxie
2018-03-23 09:46:58 +08:00
parent 5592c5d2fe
commit 1c903b9a9d
+1 -1
View File
@@ -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()
}
}