@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.esm.js
CHANGED
|
@@ -3746,6 +3746,7 @@ const PopsLoadingConfig = () => {
|
|
|
3746
3746
|
},
|
|
3747
3747
|
animation: "pops-anim-fadein-zoom",
|
|
3748
3748
|
forbiddenScroll: false,
|
|
3749
|
+
isAbsolute: false,
|
|
3749
3750
|
style: null,
|
|
3750
3751
|
addIndexCSS: true,
|
|
3751
3752
|
};
|
|
@@ -3782,9 +3783,6 @@ class PopsLoading {
|
|
|
3782
3783
|
* 弹窗的主元素,包括动画层
|
|
3783
3784
|
*/
|
|
3784
3785
|
let $anim = PopsElementHandler.parseElement(animHTML);
|
|
3785
|
-
// 遮罩层必须是跟随主内容
|
|
3786
|
-
// 即设置主内容position: relative,mask:position: absolute
|
|
3787
|
-
popsDOMUtils.css($anim, "position", "absolute !important");
|
|
3788
3786
|
let { popsElement: $pops } = PopsHandler.handleQueryElement($anim, PopsType);
|
|
3789
3787
|
/**
|
|
3790
3788
|
* 遮罩层元素
|
|
@@ -3804,9 +3802,6 @@ class PopsLoading {
|
|
|
3804
3802
|
maskHTML: maskHTML,
|
|
3805
3803
|
});
|
|
3806
3804
|
$mask = _handleMask_.maskElement;
|
|
3807
|
-
// 遮罩层必须是跟随主内容
|
|
3808
|
-
// 即设置主内容position: relative,mask:position: absolute
|
|
3809
|
-
popsDOMUtils.css($mask, "position", "absolute !important");
|
|
3810
3805
|
elementList.push($mask);
|
|
3811
3806
|
}
|
|
3812
3807
|
let eventDetails = PopsHandler.handleLoadingEventDetails(guid, PopsType, $anim, $pops, $mask, config);
|
|
@@ -3820,6 +3815,12 @@ class PopsLoading {
|
|
|
3820
3815
|
popsElement: $pops,
|
|
3821
3816
|
maskElement: $mask,
|
|
3822
3817
|
});
|
|
3818
|
+
if (config.isAbsolute) {
|
|
3819
|
+
// 遮罩层必须是跟随主内容
|
|
3820
|
+
// 即设置主内容position: relative,mask:position: absolute
|
|
3821
|
+
popsDOMUtils.css($anim, "position", "absolute !important");
|
|
3822
|
+
$mask && popsDOMUtils.css($mask, "position", "absolute !important");
|
|
3823
|
+
}
|
|
3823
3824
|
return PopsHandler.handleResultDetails(eventDetails);
|
|
3824
3825
|
}
|
|
3825
3826
|
}
|