DatePicker: close timepicker before dodestroy

pull/6189/head
Dreamacro 2017-07-27 16:10:16 +08:00 committed by 杨奕
parent 4f21221c0b
commit df16836163
1 changed files with 6 additions and 1 deletions

View File

@ -1,5 +1,5 @@
<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');
}
},