@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.umd.js CHANGED
@@ -4832,9 +4832,7 @@
4832
4832
  getMaxZIndexNodeInfo(deviation = 1, target = this.windowApi.document, ignoreCallBack) {
4833
4833
  deviation = Number.isNaN(deviation) ? 1 : deviation;
4834
4834
  const UtilsContext = this;
4835
- // 最大值2147483647
4836
- const maxZIndex = Math.pow(2, 31) - 1;
4837
- // 比较值2000000000
4835
+ // 比较值 2000000000
4838
4836
  const maxZIndexCompare = 2 * Math.pow(10, 9);
4839
4837
  // 当前页面最大的z-index
4840
4838
  let zIndex = 0;
@@ -4886,7 +4884,7 @@
4886
4884
  zIndex += deviation;
4887
4885
  if (zIndex >= maxZIndexCompare) {
4888
4886
  // 最好不要超过最大值
4889
- zIndex = maxZIndex;
4887
+ zIndex = maxZIndexCompare;
4890
4888
  }
4891
4889
  return {
4892
4890
  node: maxZIndexNode,