From 8a48baec0577907ad2e9c04ee0d51c3f64678bee Mon Sep 17 00:00:00 2001 From: xuxiaoyan Date: Wed, 28 Nov 2018 11:14:38 +0800 Subject: [PATCH] fix(toast): hide asynchronously[#242] --- components/toast/toast.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/components/toast/toast.vue b/components/toast/toast.vue index a4e1fa401..e2bbadad0 100644 --- a/components/toast/toast.vue +++ b/components/toast/toast.vue @@ -86,7 +86,9 @@ export default { this.$emit('hide') }, hide() { - this.visible = false + setTimeout(() => { + this.visible = false + }, 0) }, }, }