[bugfix] Toast: missing fade-out transition in multiple mode (#3504)

This commit is contained in:
neverland
2019-06-14 11:51:08 +08:00
committed by GitHub
parent 769de91a6e
commit 0ea1c6f644
3 changed files with 34 additions and 9 deletions
+9 -1
View File
@@ -69,6 +69,10 @@ export default sfc({
if (this.onOpened) {
this.onOpened();
}
},
onAfterLeave() {
this.$emit('closed');
}
},
@@ -100,7 +104,11 @@ export default sfc({
}
return (
<transition name="van-fade" onAfterEnter={this.onAfterEnter}>
<transition
name="van-fade"
onAfterEnter={this.onAfterEnter}
onAfterLeave={this.onAfterLeave}
>
<div
vShow={this.value}
class={[