@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.system.js
CHANGED
|
@@ -3751,6 +3751,7 @@ System.register('pops', [], (function (exports) {
|
|
|
3751
3751
|
},
|
|
3752
3752
|
animation: "pops-anim-fadein-zoom",
|
|
3753
3753
|
forbiddenScroll: false,
|
|
3754
|
+
isAbsolute: false,
|
|
3754
3755
|
style: null,
|
|
3755
3756
|
addIndexCSS: true,
|
|
3756
3757
|
};
|
|
@@ -3787,9 +3788,6 @@ System.register('pops', [], (function (exports) {
|
|
|
3787
3788
|
* 弹窗的主元素,包括动画层
|
|
3788
3789
|
*/
|
|
3789
3790
|
let $anim = PopsElementHandler.parseElement(animHTML);
|
|
3790
|
-
// 遮罩层必须是跟随主内容
|
|
3791
|
-
// 即设置主内容position: relative,mask:position: absolute
|
|
3792
|
-
popsDOMUtils.css($anim, "position", "absolute !important");
|
|
3793
3791
|
let { popsElement: $pops } = PopsHandler.handleQueryElement($anim, PopsType);
|
|
3794
3792
|
/**
|
|
3795
3793
|
* 遮罩层元素
|
|
@@ -3809,9 +3807,6 @@ System.register('pops', [], (function (exports) {
|
|
|
3809
3807
|
maskHTML: maskHTML,
|
|
3810
3808
|
});
|
|
3811
3809
|
$mask = _handleMask_.maskElement;
|
|
3812
|
-
// 遮罩层必须是跟随主内容
|
|
3813
|
-
// 即设置主内容position: relative,mask:position: absolute
|
|
3814
|
-
popsDOMUtils.css($mask, "position", "absolute !important");
|
|
3815
3810
|
elementList.push($mask);
|
|
3816
3811
|
}
|
|
3817
3812
|
let eventDetails = PopsHandler.handleLoadingEventDetails(guid, PopsType, $anim, $pops, $mask, config);
|
|
@@ -3825,6 +3820,12 @@ System.register('pops', [], (function (exports) {
|
|
|
3825
3820
|
popsElement: $pops,
|
|
3826
3821
|
maskElement: $mask,
|
|
3827
3822
|
});
|
|
3823
|
+
if (config.isAbsolute) {
|
|
3824
|
+
// 遮罩层必须是跟随主内容
|
|
3825
|
+
// 即设置主内容position: relative,mask:position: absolute
|
|
3826
|
+
popsDOMUtils.css($anim, "position", "absolute !important");
|
|
3827
|
+
$mask && popsDOMUtils.css($mask, "position", "absolute !important");
|
|
3828
|
+
}
|
|
3828
3829
|
return PopsHandler.handleResultDetails(eventDetails);
|
|
3829
3830
|
}
|
|
3830
3831
|
}
|