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