@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.amd.js
CHANGED
|
@@ -4828,9 +4828,7 @@ define((function () { 'use strict';
|
|
|
4828
4828
|
getMaxZIndexNodeInfo(deviation = 1, target = this.windowApi.document, ignoreCallBack) {
|
|
4829
4829
|
deviation = Number.isNaN(deviation) ? 1 : deviation;
|
|
4830
4830
|
const UtilsContext = this;
|
|
4831
|
-
//
|
|
4832
|
-
const maxZIndex = Math.pow(2, 31) - 1;
|
|
4833
|
-
// 比较值2000000000
|
|
4831
|
+
// 比较值 2000000000
|
|
4834
4832
|
const maxZIndexCompare = 2 * Math.pow(10, 9);
|
|
4835
4833
|
// 当前页面最大的z-index
|
|
4836
4834
|
let zIndex = 0;
|
|
@@ -4882,7 +4880,7 @@ define((function () { 'use strict';
|
|
|
4882
4880
|
zIndex += deviation;
|
|
4883
4881
|
if (zIndex >= maxZIndexCompare) {
|
|
4884
4882
|
// 最好不要超过最大值
|
|
4885
|
-
zIndex =
|
|
4883
|
+
zIndex = maxZIndexCompare;
|
|
4886
4884
|
}
|
|
4887
4885
|
return {
|
|
4888
4886
|
node: maxZIndexNode,
|