Closed jinyongp closed 1 year ago
You can use prop open
.
<date-picker :open="open" @open="handleOpen" @close="handleClose" />
data() {
return { open: false }
},
methods: {
handleOpen() { this.open = true },
handleClose() { this.open = false }
}
It works well, thanks!
Vue-datepicker-next version: 1.0.2 Vue version: 3.2.45 Browser: Chrome (110.0.5481.100)
I found an issue(https://github.com/mengxiong10/vue2-datepicker/issues/351) related to this problem, but I think the "closePopup" function disappeared. Is there any other way?