@whitesev/pops 2.0.4 → 2.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.umd.js CHANGED
@@ -3788,6 +3788,9 @@
3788
3788
  * 弹窗的主元素,包括动画层
3789
3789
  */
3790
3790
  let $anim = PopsElementHandler.parseElement(animHTML);
3791
+ // 遮罩层必须是跟随主内容
3792
+ // 即设置主内容position: relative,mask:position: absolute
3793
+ popsDOMUtils.css($anim, "position", "absolute !important");
3791
3794
  let { popsElement: $pops } = PopsHandler.handleQueryElement($anim, PopsType);
3792
3795
  /**
3793
3796
  * 遮罩层元素