REFATOR:重构时间选择器
This commit is contained in:
@@ -362,10 +362,16 @@ export default {
|
||||
this.startDate ? this.formatDate(this.startDate) : null,
|
||||
this.endDate ? this.formatDate(this.endDate) : null
|
||||
])
|
||||
this.handleClose()
|
||||
this.handleClose(false)
|
||||
},
|
||||
|
||||
handleClose() {
|
||||
handleClose(shouldClear = true) {
|
||||
if (shouldClear) {
|
||||
this.clearDates()
|
||||
this.startDate = null
|
||||
this.endDate = null
|
||||
this.$emit('input', [null, null])
|
||||
}
|
||||
this.$emit('update:show', false)
|
||||
this.$emit('close')
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user