@whitesev/pops 2.0.5 → 2.0.6
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.amd.js +7 -6
- package/dist/index.amd.js.map +1 -1
- package/dist/index.cjs.js +7 -6
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +7 -6
- package/dist/index.esm.js.map +1 -1
- package/dist/index.iife.js +7 -6
- package/dist/index.iife.js.map +1 -1
- package/dist/index.system.js +7 -6
- package/dist/index.system.js.map +1 -1
- package/dist/index.umd.js +7 -6
- package/dist/index.umd.js.map +1 -1
- package/dist/types/src/components/loading/indexType.d.ts +7 -0
- package/package.json +1 -1
- package/src/components/loading/config.ts +1 -1
- package/src/components/loading/index.ts +6 -6
- package/src/components/loading/indexType.ts +7 -0
package/dist/index.umd.js
CHANGED
|
@@ -3752,6 +3752,7 @@
|
|
|
3752
3752
|
},
|
|
3753
3753
|
animation: "pops-anim-fadein-zoom",
|
|
3754
3754
|
forbiddenScroll: false,
|
|
3755
|
+
isAbsolute: false,
|
|
3755
3756
|
style: null,
|
|
3756
3757
|
addIndexCSS: true,
|
|
3757
3758
|
};
|
|
@@ -3788,9 +3789,6 @@
|
|
|
3788
3789
|
* 弹窗的主元素,包括动画层
|
|
3789
3790
|
*/
|
|
3790
3791
|
let $anim = PopsElementHandler.parseElement(animHTML);
|
|
3791
|
-
// 遮罩层必须是跟随主内容
|
|
3792
|
-
// 即设置主内容position: relative,mask:position: absolute
|
|
3793
|
-
popsDOMUtils.css($anim, "position", "absolute !important");
|
|
3794
3792
|
let { popsElement: $pops } = PopsHandler.handleQueryElement($anim, PopsType);
|
|
3795
3793
|
/**
|
|
3796
3794
|
* 遮罩层元素
|
|
@@ -3810,9 +3808,6 @@
|
|
|
3810
3808
|
maskHTML: maskHTML,
|
|
3811
3809
|
});
|
|
3812
3810
|
$mask = _handleMask_.maskElement;
|
|
3813
|
-
// 遮罩层必须是跟随主内容
|
|
3814
|
-
// 即设置主内容position: relative,mask:position: absolute
|
|
3815
|
-
popsDOMUtils.css($mask, "position", "absolute !important");
|
|
3816
3811
|
elementList.push($mask);
|
|
3817
3812
|
}
|
|
3818
3813
|
let eventDetails = PopsHandler.handleLoadingEventDetails(guid, PopsType, $anim, $pops, $mask, config);
|
|
@@ -3826,6 +3821,12 @@
|
|
|
3826
3821
|
popsElement: $pops,
|
|
3827
3822
|
maskElement: $mask,
|
|
3828
3823
|
});
|
|
3824
|
+
if (config.isAbsolute) {
|
|
3825
|
+
// 遮罩层必须是跟随主内容
|
|
3826
|
+
// 即设置主内容position: relative,mask:position: absolute
|
|
3827
|
+
popsDOMUtils.css($anim, "position", "absolute !important");
|
|
3828
|
+
$mask && popsDOMUtils.css($mask, "position", "absolute !important");
|
|
3829
|
+
}
|
|
3829
3830
|
return PopsHandler.handleResultDetails(eventDetails);
|
|
3830
3831
|
}
|
|
3831
3832
|
}
|