@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@whitesev/pops",
3
- "version": "1.5.1",
3
+ "version": "1.5.2",
4
4
  "description": "弹窗库",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",
package/src/Pops.ts CHANGED
@@ -80,7 +80,7 @@ class Pops {
80
80
  /** 配置 */
81
81
  config = {
82
82
  /** 版本号 */
83
- version: "2024.8.6",
83
+ version: "2024.8.15",
84
84
  cssText: {
85
85
  /** 主CSS */
86
86
  index: indexCSS,
@@ -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
- // 比较值2000000000
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: maxZIndex, animElement: maxZIndexNode };
55
+ return { zIndex: zIndex, animElement: maxZIndexNode };
55
56
  },
56
57
  /**
57
58
  * 获取CSS Rule