@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@whitesev/pops",
3
- "version": "2.0.4",
3
+ "version": "2.0.5",
4
4
  "description": "弹窗库",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",
@@ -54,6 +54,9 @@ export class PopsLoading {
54
54
  */
55
55
 
56
56
  let $anim = PopsElementHandler.parseElement<HTMLDivElement>(animHTML);
57
+ // 遮罩层必须是跟随主内容
58
+ // 即设置主内容position: relative,mask:position: absolute
59
+ popsDOMUtils.css($anim, "position", "absolute !important");
57
60
 
58
61
  let { popsElement: $pops } = PopsHandler.handleQueryElement(
59
62
  $anim,