@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/package.json
CHANGED
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 =
|
|
1301
|
+
zIndex = maxZIndexCompare;
|
|
1302
1302
|
}
|
|
1303
1303
|
return {
|
|
1304
1304
|
node: maxZIndexNode,
|