@whitesev/pops 1.5.0 → 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.0",
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.7.20",
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">
@@ -109,6 +109,7 @@ section.pops-panel-container > ul li {
109
109
  justify-content: space-between;
110
110
  align-items: center;
111
111
  margin: 10px 20px;
112
+ gap: 1rem;
112
113
  }
113
114
  section.pops-panel-container li.pops-panel-forms-container-item {
114
115
  display: block;
@@ -138,12 +139,12 @@ section.pops-panel-container .pops-panel-forms-container-item > div {
138
139
  text-align: left;
139
140
  }
140
141
  /* 主文字 */
141
- section.pops-panel-container
142
+ /*section.pops-panel-container
142
143
  .pops-panel-forms-container-item
143
144
  .pops-panel-item-left-text
144
145
  .pops-panel-item-left-main-text {
145
- /* line-height: 2; */
146
- }
146
+ line-height: 2;
147
+ }*/
147
148
  /* 描述文字 */
148
149
  section.pops-panel-container
149
150
  .pops-panel-forms-container-item
@@ -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