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)