This repository has been archived on 2023-08-30. You can view files and clone it, but cannot push or open issues/pull-requests.
bytedo
/
wcui
Archived
1
0
Fork 0

优化layer

old
宇天 2019-10-30 11:21:43 +08:00
parent c60cb14576
commit 46ac8de0ee
1 changed files with 4 additions and 0 deletions

View File

@ -488,6 +488,10 @@ class Layer {
/* ------------------------ */ /* ------------------------ */
if (this.props.mask) { if (this.props.mask) {
this._handlMask = clickOutside(this.root.children[1], ev => { this._handlMask = clickOutside(this.root.children[1], ev => {
// 只作用于wc-layer
if (ev.target.tagName !== 'WC-LAYER') {
return
}
if (this.props['mask-close']) { if (this.props['mask-close']) {
if (this.wrapped === false) { if (this.wrapped === false) {
this.reject(null) this.reject(null)