@whitesev/utils 2.5.2 → 2.5.3
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 +2 -4
- package/dist/index.amd.js.map +1 -1
- package/dist/index.cjs.js +2 -4
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +2 -4
- package/dist/index.esm.js.map +1 -1
- package/dist/index.iife.js +2 -4
- package/dist/index.iife.js.map +1 -1
- package/dist/index.system.js +2 -4
- package/dist/index.system.js.map +1 -1
- package/dist/index.umd.js +2 -4
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/Utils.ts +3 -3
package/dist/index.system.js
CHANGED
|
@@ -4831,9 +4831,7 @@ System.register('Utils', [], (function (exports) {
|
|
|
4831
4831
|
getMaxZIndexNodeInfo(deviation = 1, target = this.windowApi.document, ignoreCallBack) {
|
|
4832
4832
|
deviation = Number.isNaN(deviation) ? 1 : deviation;
|
|
4833
4833
|
const UtilsContext = this;
|
|
4834
|
-
//
|
|
4835
|
-
const maxZIndex = Math.pow(2, 31) - 1;
|
|
4836
|
-
// 比较值2000000000
|
|
4834
|
+
// 比较值 2000000000
|
|
4837
4835
|
const maxZIndexCompare = 2 * Math.pow(10, 9);
|
|
4838
4836
|
// 当前页面最大的z-index
|
|
4839
4837
|
let zIndex = 0;
|
|
@@ -4885,7 +4883,7 @@ System.register('Utils', [], (function (exports) {
|
|
|
4885
4883
|
zIndex += deviation;
|
|
4886
4884
|
if (zIndex >= maxZIndexCompare) {
|
|
4887
4885
|
// 最好不要超过最大值
|
|
4888
|
-
zIndex =
|
|
4886
|
+
zIndex = maxZIndexCompare;
|
|
4889
4887
|
}
|
|
4890
4888
|
return {
|
|
4891
4889
|
node: maxZIndexNode,
|