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