From b88aa8fa7ccc8196192c1b3fa0f618cc84885e57 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=87=E5=A4=A9?= Date: Wed, 6 Nov 2019 09:26:26 +0800 Subject: [PATCH] =?UTF-8?q?layer=E5=A2=9E=E5=8A=A0=E5=85=B3=E9=97=AD?= =?UTF-8?q?=E6=9E=B6=E8=AE=BE=20=20layer=E5=A2=9E=E5=8A=A0=E5=85=B3?= =?UTF-8?q?=E9=97=AD=E5=9B=9E=E8=B0=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layer/index.wc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/layer/index.wc b/src/layer/index.wc index 14fc841..abbbc91 100644 --- a/src/layer/index.wc +++ b/src/layer/index.wc @@ -420,13 +420,16 @@ class Layer { this.root.children[1].style.cssText += _style this.timer = setTimeout(() => { this.parentNode.removeChild(this) + this.dispatchEvent(new CustomEvent('close')) }, 200) } else { clearTimeout(this.timer) this.parentNode.removeChild(this) + this.dispatchEvent(new CustomEvent('close')) } } else { this.removeAttribute('common') + this.dispatchEvent(new CustomEvent('close')) } }