@whitesev/pops 2.0.4 → 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 -3
- package/dist/index.amd.js.map +1 -1
- package/dist/index.cjs.js +7 -3
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +7 -3
- package/dist/index.esm.js.map +1 -1
- package/dist/index.iife.js +7 -3
- package/dist/index.iife.js.map +1 -1
- package/dist/index.system.js +7 -3
- package/dist/index.system.js.map +1 -1
- package/dist/index.umd.js +7 -3
- 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 -3
- package/src/components/loading/indexType.ts +7 -0
package/dist/index.iife.js
CHANGED
|
@@ -3749,6 +3749,7 @@ var pops = (function () {
|
|
|
3749
3749
|
},
|
|
3750
3750
|
animation: "pops-anim-fadein-zoom",
|
|
3751
3751
|
forbiddenScroll: false,
|
|
3752
|
+
isAbsolute: false,
|
|
3752
3753
|
style: null,
|
|
3753
3754
|
addIndexCSS: true,
|
|
3754
3755
|
};
|
|
@@ -3804,9 +3805,6 @@ var pops = (function () {
|
|
|
3804
3805
|
maskHTML: maskHTML,
|
|
3805
3806
|
});
|
|
3806
3807
|
$mask = _handleMask_.maskElement;
|
|
3807
|
-
// 遮罩层必须是跟随主内容
|
|
3808
|
-
// 即设置主内容position: relative,mask:position: absolute
|
|
3809
|
-
popsDOMUtils.css($mask, "position", "absolute !important");
|
|
3810
3808
|
elementList.push($mask);
|
|
3811
3809
|
}
|
|
3812
3810
|
let eventDetails = PopsHandler.handleLoadingEventDetails(guid, PopsType, $anim, $pops, $mask, config);
|
|
@@ -3820,6 +3818,12 @@ var pops = (function () {
|
|
|
3820
3818
|
popsElement: $pops,
|
|
3821
3819
|
maskElement: $mask,
|
|
3822
3820
|
});
|
|
3821
|
+
if (config.isAbsolute) {
|
|
3822
|
+
// 遮罩层必须是跟随主内容
|
|
3823
|
+
// 即设置主内容position: relative,mask:position: absolute
|
|
3824
|
+
popsDOMUtils.css($anim, "position", "absolute !important");
|
|
3825
|
+
$mask && popsDOMUtils.css($mask, "position", "absolute !important");
|
|
3826
|
+
}
|
|
3823
3827
|
return PopsHandler.handleResultDetails(eventDetails);
|
|
3824
3828
|
}
|
|
3825
3829
|
}
|