Commit df168361 authored by Dreamacro's avatar Dreamacro Committed by 杨奕

DatePicker: close timepicker before dodestroy

parent 4f21221c
<template>
<transition name="el-zoom-in-top" @after-leave="$emit('dodestroy')">
<transition name="el-zoom-in-top" @after-leave="afterLeave">
<div
v-show="visible"
:style="{
......@@ -342,6 +342,11 @@
this.year = this.date.getFullYear();
this.month = this.date.getMonth();
}
},
afterLeave() {
this.$refs.timepicker.handleConfirm();
this.$emit('dodestroy');
}
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment