@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@whitesev/utils",
3
- "version": "2.5.2",
3
+ "version": "2.5.3",
4
4
  "description": "一个常用的工具库",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",
package/src/Utils.ts CHANGED
@@ -1244,9 +1244,9 @@ class Utils {
1244
1244
  } {
1245
1245
  deviation = Number.isNaN(deviation) ? 1 : deviation;
1246
1246
  const UtilsContext = this;
1247
- // 最大值2147483647
1247
+ // 最大值 2147483647
1248
1248
  const maxZIndex = Math.pow(2, 31) - 1;
1249
- // 比较值2000000000
1249
+ // 比较值 2000000000
1250
1250
  const maxZIndexCompare = 2 * Math.pow(10, 9);
1251
1251
  // 当前页面最大的z-index
1252
1252
  let zIndex = 0;
@@ -1298,7 +1298,7 @@ class Utils {
1298
1298
  zIndex += deviation;
1299
1299
  if (zIndex >= maxZIndexCompare) {
1300
1300
  // 最好不要超过最大值
1301
- zIndex = maxZIndex;
1301
+ zIndex = maxZIndexCompare;
1302
1302
  }
1303
1303
  return {
1304
1304
  node: maxZIndexNode,