From 46ac8de0eeaa7a64ca2899b3edf2c7906b107370 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=87=E5=A4=A9?= Date: Wed, 30 Oct 2019 11:21:43 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96layer?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layer/index.wc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/layer/index.wc b/src/layer/index.wc index ce5ac80..8f3f3c7 100644 --- a/src/layer/index.wc +++ b/src/layer/index.wc @@ -488,6 +488,10 @@ class Layer { /* ------------------------ */ if (this.props.mask) { this._handlMask = clickOutside(this.root.children[1], ev => { + // 只作用于wc-layer + if (ev.target.tagName !== 'WC-LAYER') { + return + } if (this.props['mask-close']) { if (this.wrapped === false) { this.reject(null)