2
0
mirror of https://github.com/tenrok/vue2-datepicker.git synced 2026-06-16 12:10:34 +03:00

feat: emit clear event for the clear button

This commit is contained in:
mxie
2018-09-06 18:50:50 +08:00
parent 6d7d46546e
commit e0776b6c83
2 changed files with 4 additions and 1 deletions
+1
View File
@@ -320,6 +320,7 @@ export default {
const date = this.range ? [null, null] : null
this.currentValue = date
this.updateDate(true)
this.$emit('clear')
},
confirmDate () {
const valid = this.range ? isValidRange(this.currentValue) : isValidDate(this.currentValue)