@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/package.json
CHANGED
package/src/Pops.ts
CHANGED
|
@@ -268,7 +268,7 @@ export class PopsFolder {
|
|
|
268
268
|
<div class="text-ellip content flex-a-i-center">
|
|
269
269
|
<span>文件名</span>
|
|
270
270
|
<div class="pops-folder-list-table__sort" data-sort="fileName">
|
|
271
|
-
<div class="pops-folder-icon-arrow">
|
|
271
|
+
<div class="pops-folder-icon-arrow" data-sort="按文件名排序">
|
|
272
272
|
<svg
|
|
273
273
|
viewBox="0 0 1024 1024"
|
|
274
274
|
xmlns="http://www.w3.org/2000/svg">
|
|
@@ -287,7 +287,7 @@ export class PopsFolder {
|
|
|
287
287
|
<div class="text-ellip content flex-a-i-center">
|
|
288
288
|
<span>修改时间</span>
|
|
289
289
|
<div class="pops-folder-list-table__sort" data-sort="latestTime">
|
|
290
|
-
<div class="pops-folder-icon-arrow">
|
|
290
|
+
<div class="pops-folder-icon-arrow" title="按修改时间排序">
|
|
291
291
|
<svg
|
|
292
292
|
viewBox="0 0 1024 1024"
|
|
293
293
|
xmlns="http://www.w3.org/2000/svg">
|
|
@@ -306,7 +306,7 @@ export class PopsFolder {
|
|
|
306
306
|
<div class="text-ellip content flex-a-i-center">
|
|
307
307
|
<span>大小</span>
|
|
308
308
|
<div class="pops-folder-list-table__sort" data-sort="fileSize">
|
|
309
|
-
<div class="pops-folder-icon-arrow">
|
|
309
|
+
<div class="pops-folder-icon-arrow" title="按大小排序">
|
|
310
310
|
<svg
|
|
311
311
|
viewBox="0 0 1024 1024"
|
|
312
312
|
xmlns="http://www.w3.org/2000/svg">
|
|
@@ -22,8 +22,7 @@ export const PopsInstanceUtils = {
|
|
|
22
22
|
deviation = Number.isNaN(deviation) ? 1 : deviation;
|
|
23
23
|
// 最大值2147483647
|
|
24
24
|
let maxZIndex = Math.pow(2, 31) - 1;
|
|
25
|
-
|
|
26
|
-
let maxZIndexCompare = 2 * Math.pow(10, 9);
|
|
25
|
+
|
|
27
26
|
// 当前页面最大的z-index
|
|
28
27
|
let zIndex = 0;
|
|
29
28
|
// 当前的最大z-index的元素,调试使用
|
|
@@ -47,11 +46,13 @@ export const PopsInstanceUtils = {
|
|
|
47
46
|
}
|
|
48
47
|
});
|
|
49
48
|
zIndex += deviation;
|
|
49
|
+
// 用于比较的值2000000000,大于该值就取该值
|
|
50
|
+
let maxZIndexCompare = 2 * Math.pow(10, 9);
|
|
50
51
|
if (zIndex >= maxZIndexCompare) {
|
|
51
52
|
// 最好不要超过最大值
|
|
52
53
|
zIndex = maxZIndex;
|
|
53
54
|
}
|
|
54
|
-
return { zIndex:
|
|
55
|
+
return { zIndex: zIndex, animElement: maxZIndexNode };
|
|
55
56
|
},
|
|
56
57
|
/**
|
|
57
58
|
* 获取CSS Rule
|