@whitesev/pops 1.5.1 → 1.5.2
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 +7 -7
- package/dist/index.amd.js.map +1 -1
- package/dist/index.cjs.js +7 -7
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +7 -7
- package/dist/index.esm.js.map +1 -1
- package/dist/index.iife.js +7 -7
- package/dist/index.iife.js.map +1 -1
- package/dist/index.system.js +7 -7
- package/dist/index.system.js.map +1 -1
- package/dist/index.umd.js +7 -7
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/Pops.ts +1 -1
- package/src/components/folder/index.ts +3 -3
- package/src/utils/PopsInstanceUtils.ts +4 -3
package/dist/index.esm.js
CHANGED
|
@@ -2955,8 +2955,6 @@ const PopsInstanceUtils = {
|
|
|
2955
2955
|
deviation = Number.isNaN(deviation) ? 1 : deviation;
|
|
2956
2956
|
// 最大值2147483647
|
|
2957
2957
|
let maxZIndex = Math.pow(2, 31) - 1;
|
|
2958
|
-
// 比较值2000000000
|
|
2959
|
-
let maxZIndexCompare = 2 * Math.pow(10, 9);
|
|
2960
2958
|
// 当前页面最大的z-index
|
|
2961
2959
|
let zIndex = 0;
|
|
2962
2960
|
// 当前的最大z-index的元素,调试使用
|
|
@@ -2979,11 +2977,13 @@ const PopsInstanceUtils = {
|
|
|
2979
2977
|
}
|
|
2980
2978
|
});
|
|
2981
2979
|
zIndex += deviation;
|
|
2980
|
+
// 用于比较的值2000000000,大于该值就取该值
|
|
2981
|
+
let maxZIndexCompare = 2 * Math.pow(10, 9);
|
|
2982
2982
|
if (zIndex >= maxZIndexCompare) {
|
|
2983
2983
|
// 最好不要超过最大值
|
|
2984
2984
|
zIndex = maxZIndex;
|
|
2985
2985
|
}
|
|
2986
|
-
return { zIndex:
|
|
2986
|
+
return { zIndex: zIndex, animElement: maxZIndexNode };
|
|
2987
2987
|
},
|
|
2988
2988
|
/**
|
|
2989
2989
|
* 获取CSS Rule
|
|
@@ -5937,7 +5937,7 @@ class PopsFolder {
|
|
|
5937
5937
|
<div class="text-ellip content flex-a-i-center">
|
|
5938
5938
|
<span>文件名</span>
|
|
5939
5939
|
<div class="pops-folder-list-table__sort" data-sort="fileName">
|
|
5940
|
-
<div class="pops-folder-icon-arrow">
|
|
5940
|
+
<div class="pops-folder-icon-arrow" data-sort="按文件名排序">
|
|
5941
5941
|
<svg
|
|
5942
5942
|
viewBox="0 0 1024 1024"
|
|
5943
5943
|
xmlns="http://www.w3.org/2000/svg">
|
|
@@ -5956,7 +5956,7 @@ class PopsFolder {
|
|
|
5956
5956
|
<div class="text-ellip content flex-a-i-center">
|
|
5957
5957
|
<span>修改时间</span>
|
|
5958
5958
|
<div class="pops-folder-list-table__sort" data-sort="latestTime">
|
|
5959
|
-
<div class="pops-folder-icon-arrow">
|
|
5959
|
+
<div class="pops-folder-icon-arrow" title="按修改时间排序">
|
|
5960
5960
|
<svg
|
|
5961
5961
|
viewBox="0 0 1024 1024"
|
|
5962
5962
|
xmlns="http://www.w3.org/2000/svg">
|
|
@@ -5975,7 +5975,7 @@ class PopsFolder {
|
|
|
5975
5975
|
<div class="text-ellip content flex-a-i-center">
|
|
5976
5976
|
<span>大小</span>
|
|
5977
5977
|
<div class="pops-folder-list-table__sort" data-sort="fileSize">
|
|
5978
|
-
<div class="pops-folder-icon-arrow">
|
|
5978
|
+
<div class="pops-folder-icon-arrow" title="按大小排序">
|
|
5979
5979
|
<svg
|
|
5980
5980
|
viewBox="0 0 1024 1024"
|
|
5981
5981
|
xmlns="http://www.w3.org/2000/svg">
|
|
@@ -9946,7 +9946,7 @@ class Pops {
|
|
|
9946
9946
|
/** 配置 */
|
|
9947
9947
|
config = {
|
|
9948
9948
|
/** 版本号 */
|
|
9949
|
-
version: "2024.8.
|
|
9949
|
+
version: "2024.8.15",
|
|
9950
9950
|
cssText: {
|
|
9951
9951
|
/** 主CSS */
|
|
9952
9952
|
index: indexCSS,
|