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

DatePicker: close timepicker before dodestroy

parent 4f21221c
<template> <template>
<transition name="el-zoom-in-top" @after-leave="$emit('dodestroy')"> <transition name="el-zoom-in-top" @after-leave="afterLeave">
<div <div
v-show="visible" v-show="visible"
:style="{ :style="{
...@@ -342,6 +342,11 @@ ...@@ -342,6 +342,11 @@
this.year = this.date.getFullYear(); this.year = this.date.getFullYear();
this.month = this.date.getMonth(); 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