REFATOR:重构时间选择器

This commit is contained in:
linxi
2025-10-24 10:19:55 +08:00
parent f73d7587f7
commit 0fc99561f4
@@ -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')
}