@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.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
|
};
|
|
@@ -3801,9 +3802,6 @@ class PopsLoading {
|
|
|
3801
3802
|
maskHTML: maskHTML,
|
|
3802
3803
|
});
|
|
3803
3804
|
$mask = _handleMask_.maskElement;
|
|
3804
|
-
// 遮罩层必须是跟随主内容
|
|
3805
|
-
// 即设置主内容position: relative,mask:position: absolute
|
|
3806
|
-
popsDOMUtils.css($mask, "position", "absolute !important");
|
|
3807
3805
|
elementList.push($mask);
|
|
3808
3806
|
}
|
|
3809
3807
|
let eventDetails = PopsHandler.handleLoadingEventDetails(guid, PopsType, $anim, $pops, $mask, config);
|
|
@@ -3817,6 +3815,12 @@ class PopsLoading {
|
|
|
3817
3815
|
popsElement: $pops,
|
|
3818
3816
|
maskElement: $mask,
|
|
3819
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
|
+
}
|
|
3820
3824
|
return PopsHandler.handleResultDetails(eventDetails);
|
|
3821
3825
|
}
|
|
3822
3826
|
}
|