@whitesev/pops 1.7.3 → 1.7.5

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.
Files changed (37) hide show
  1. package/dist/index.amd.js +138 -1498
  2. package/dist/index.amd.js.map +1 -1
  3. package/dist/index.cjs.js +138 -1498
  4. package/dist/index.cjs.js.map +1 -1
  5. package/dist/index.esm.js +138 -1498
  6. package/dist/index.esm.js.map +1 -1
  7. package/dist/index.iife.js +138 -1498
  8. package/dist/index.iife.js.map +1 -1
  9. package/dist/index.system.js +138 -1498
  10. package/dist/index.system.js.map +1 -1
  11. package/dist/index.umd.js +138 -1498
  12. package/dist/index.umd.js.map +1 -1
  13. package/dist/types/src/Pops.d.ts +2 -1
  14. package/dist/types/src/utils/PopsInstanceUtils.d.ts +1 -0
  15. package/dist/types/src/utils/PopsUtils.d.ts +2 -1
  16. package/package.json +2 -1
  17. package/src/Pops.ts +1 -1
  18. package/src/components/alert/index.css +13 -11
  19. package/src/components/confirm/index.css +13 -11
  20. package/src/components/drawer/config.ts +0 -4
  21. package/src/components/drawer/index.css +12 -7
  22. package/src/components/folder/index.css +20 -12
  23. package/src/components/iframe/config.ts +1 -1
  24. package/src/components/iframe/index.css +26 -11
  25. package/src/components/iframe/index.ts +93 -134
  26. package/src/components/loading/index.css +2 -1
  27. package/src/components/panel/PanelHandleContentDetails.ts +1 -1
  28. package/src/components/panel/index.css +33 -14
  29. package/src/components/prompt/index.css +13 -11
  30. package/src/components/rightClickMenu/index.css +2 -1
  31. package/src/css/button.css +1 -1
  32. package/src/css/common.css +15 -1
  33. package/src/css/index.css +15 -5
  34. package/src/utils/PopsInstanceUtils.ts +112 -118
  35. package/src/utils/PopsUtils.ts +5 -2
  36. package/dist/types/src/utils/AnyTouch.d.ts +0 -17
  37. package/src/utils/AnyTouch.js +0 -1394
@@ -1,3 +1,4 @@
1
+ import { PopsCore } from "../../Core";
1
2
  import { GlobalConfig } from "../../GlobalConfig";
2
3
  import { PopsElementHandler } from "../../handler/PopsElementHandler";
3
4
  import { PopsHandler } from "../../handler/PopsHandler";
@@ -20,7 +21,6 @@ export class PopsIframe {
20
21
  pops.config.cssText.common,
21
22
  pops.config.cssText.iframeCSS,
22
23
  ]);
23
-
24
24
  let config: Required<PopsIframeDetails> = PopsIframeConfig();
25
25
  config = popsUtils.assign(config, GlobalConfig.getGlobalConfig());
26
26
  config = popsUtils.assign(config, details);
@@ -98,6 +98,16 @@ export class PopsIframe {
98
98
  headerMaxBtnElement,
99
99
  headerMiseBtnElement,
100
100
  } = PopsHandler.handleQueryElement($anim, PopsType);
101
+ let $iframeContainer = PopsCore.document.querySelector<HTMLDivElement>(
102
+ ".pops-iframe-container"
103
+ );
104
+ if (!$iframeContainer) {
105
+ $iframeContainer = PopsCore.document.createElement("div");
106
+ $iframeContainer.className = "pops-iframe-container";
107
+ $iframeContainer.style.cssText =
108
+ "display: flex;position: fixed;bottom: 0px;flex-flow: wrap-reverse;user-select: none;-webkit-user-select: none;-ms-user-select: none;-moz-user-select: none;";
109
+ popsDOMUtils.appendBody($iframeContainer);
110
+ }
101
111
  /**
102
112
  * 遮罩层元素
103
113
  */
@@ -145,9 +155,7 @@ export class PopsIframe {
145
155
  popsDOMUtils.on($iframe, "load", () => {
146
156
  /* iframe加载中... */
147
157
  loadingElement?.remove();
148
-
149
158
  $contentLoading!.style.animation = "iframeLoadingChange_85 0.3s forwards";
150
-
151
159
  popsDOMUtils.on(
152
160
  $contentLoading,
153
161
  popsDOMUtils.getAnimationEndNameList(),
@@ -159,12 +167,11 @@ export class PopsIframe {
159
167
 
160
168
  if (config.title!.text!.trim() === "" && $iframe!.contentDocument) {
161
169
  /* 同域名下的才可以获取网页标题 */
162
-
163
170
  $title!.querySelector<HTMLElement>("p")!.innerText =
164
171
  $iframe!.contentDocument.title;
165
172
  }
166
173
 
167
- config.loadEndCallBack(eventDetails as any);
174
+ config.loadEndCallBack(eventDetails);
168
175
  });
169
176
  /* 创建到页面中 */
170
177
 
@@ -173,7 +180,7 @@ export class PopsIframe {
173
180
  config.beforeAppendToPageCallBack($shadowRoot, $shadowContainer);
174
181
  }
175
182
 
176
- popsDOMUtils.appendBody($shadowContainer);
183
+ $iframeContainer.appendChild($shadowContainer);
177
184
  if ($mask != null) {
178
185
  $anim.after($mask);
179
186
  }
@@ -187,46 +194,33 @@ export class PopsIframe {
187
194
  endCallBack: config.dragEndCallBack,
188
195
  });
189
196
  }
190
- let normalLeft = "";
197
+ const TYPE_MODULE = "type-module";
191
198
  /* 最小化按钮点击事件 */
192
-
199
+ let origin_left = "";
200
+ let origin_top = "";
201
+ let origin_is_max = false;
193
202
  popsDOMUtils.on<PointerEvent | MouseEvent>(
194
203
  headerMinBtnElement,
195
204
  "click",
196
205
  (event) => {
197
- /**
198
- * 所有最小化的iframe数组
199
- */
200
- let allMinElementList: HTMLElement[] = [];
201
-
202
- pops.config.layer.iframe.forEach((item) => {
203
- if (
204
- item.animElement != $anim &&
205
- item.popsElement.getAttribute("type-module") === "min"
206
- ) {
207
- allMinElementList.push(item.popsElement);
208
- }
209
- });
210
- let maxLeftValue = allMinElementList.length
211
- ? allMinElementList.length * 205
212
- : 0;
213
-
214
- $pops!.style.transitionDuration = "";
215
-
216
- normalLeft = $pops!.style.left;
217
-
218
- $pops!.style.left = maxLeftValue + "px";
219
-
220
- $pops!.setAttribute("type-module", "min");
221
-
222
- $anim!
223
- .querySelector<HTMLDivElement>(".pops-header-controls")
224
- ?.setAttribute("type", "max");
225
-
226
- config.btn.min.callback(eventDetails, event);
227
- },
228
- {
229
- capture: true,
206
+ event.preventDefault();
207
+ event.stopPropagation();
208
+ origin_left = $pops.style.left;
209
+ origin_top = $pops.style.top;
210
+ $pops.classList.add("pops-iframe-unset-top");
211
+ $pops.classList.add("pops-iframe-unset-left");
212
+ $pops.classList.add("pops-iframe-unset-transform");
213
+ $pops.style.transitionDuration = "";
214
+
215
+ $pops.setAttribute(TYPE_MODULE, "min");
216
+ headerControlsElement.setAttribute("type", "min");
217
+ // 隐藏放大图标
218
+ headerMaxBtnElement.style.setProperty("display", "none");
219
+ // 显示复位图标
220
+ headerMiseBtnElement.style.setProperty("display", "");
221
+ if (typeof config?.btn?.min?.callback === "function") {
222
+ config.btn.min.callback(eventDetails, event);
223
+ }
230
224
  }
231
225
  );
232
226
  /* 最大化按钮点击事件 */
@@ -234,75 +228,69 @@ export class PopsIframe {
234
228
  headerMaxBtnElement,
235
229
  "click",
236
230
  (event) => {
237
- $pops!.style.transitionDuration = "";
238
-
239
- normalLeft = $pops!.style.left;
240
-
241
- $pops!.removeAttribute("type-module");
242
-
243
- $pops!.setAttribute("type-module", "max");
244
-
245
- headerControlsElement!.setAttribute("type", "max");
246
-
247
- headerMaxBtnElement!.style.setProperty("display", "none");
248
-
249
- headerMiseBtnElement!.style.setProperty("display", "");
250
-
251
- config.btn.max.callback(eventDetails, event);
252
- },
253
- {
254
- capture: true,
231
+ event.preventDefault();
232
+ event.stopPropagation();
233
+ if ($pops.getAttribute(TYPE_MODULE) !== "min") {
234
+ origin_left = $pops.style.left;
235
+ origin_top = $pops.style.top;
236
+ }
237
+ origin_is_max = true;
238
+ $pops.style.transitionDuration = "";
239
+ $pops.style.transform = "";
240
+ $pops.removeAttribute(TYPE_MODULE);
241
+ $pops.classList.add("pops-iframe-unset-transition");
242
+ $pops.classList.add("pops-iframe-unset-left");
243
+ $pops.classList.add("pops-iframe-unset-top");
244
+ $pops.classList.add("pops-iframe-unset-transform");
245
+ $pops.classList.remove("pops-iframe-unset-transition");
246
+ $pops.setAttribute(TYPE_MODULE, "max");
247
+ headerControlsElement.setAttribute("type", "max");
248
+ // 隐藏放大图标
249
+ headerMaxBtnElement.style.setProperty("display", "none");
250
+ // 显示复位图标
251
+ headerMiseBtnElement.style.setProperty("display", "");
252
+ if (typeof config?.btn?.max?.callback === "function") {
253
+ config.btn.max.callback(eventDetails, event);
254
+ }
255
255
  }
256
256
  );
257
257
  /* 先隐藏窗口化按钮 */
258
258
  headerMiseBtnElement?.style?.setProperty("display", "none");
259
- /* 窗口化按钮点击事件 */
259
+ /* 复位按钮点击事件 */
260
260
  popsDOMUtils.on<MouseEvent | PointerEvent>(
261
261
  headerMiseBtnElement,
262
262
  "click",
263
263
  (event) => {
264
- $pops!.style.transitionDuration = "";
265
-
266
- $pops!.style.left = normalLeft;
267
-
268
- headerControlsElement!.removeAttribute("type");
269
-
270
- $pops!.removeAttribute("type-module");
271
- /**
272
- * 所有最小化的iframe数组
273
- */
274
- let allMinElementList: HTMLElement[] = [];
275
- pops.config.layer.iframe.forEach((item) => {
276
- if (
277
- item.animElement != $anim &&
278
- $pops!.getAttribute("type-module") === "min"
279
- ) {
280
- allMinElementList.push(item.popsElement);
281
- }
282
- });
283
- allMinElementList.sort(
284
- PopsInstanceUtils.sortElementListByProperty<HTMLElement, number>(
285
- (obj) => {
286
- return parseInt(getComputedStyle(obj).left);
287
- },
288
- (obj) => {
289
- return parseInt(getComputedStyle(obj).left);
290
- },
291
- false
292
- )
293
- );
294
- allMinElementList.forEach((item, index) => {
295
- item.style.left = index * 205 + "px";
296
- });
297
-
298
- headerMiseBtnElement!.style.setProperty("display", "none");
299
-
300
- headerMaxBtnElement!.style.setProperty("display", "");
301
-
302
- config.btn.mise.callback(eventDetails, event);
303
- },
304
- {
305
- capture: true,
264
+ event.preventDefault();
265
+ event.stopPropagation();
266
+ if (origin_is_max && $pops.getAttribute(TYPE_MODULE) === "min") {
267
+ $pops.classList.add("pops-iframe-unset-transition");
268
+ $pops.classList.add("pops-iframe-unset-left");
269
+ $pops.classList.add("pops-iframe-unset-top");
270
+ $pops.classList.add("pops-iframe-unset-transform");
271
+ $pops.classList.remove("pops-iframe-unset-transition");
272
+ $pops.setAttribute(TYPE_MODULE, "max");
273
+ headerControlsElement.setAttribute("type", "max");
274
+ } else {
275
+ origin_is_max = false;
276
+ $pops.style.left = origin_left;
277
+ $pops.style.top = origin_top;
278
+ $pops.style.transitionDuration = "";
279
+ $pops.style.transform = "";
280
+ headerControlsElement.removeAttribute("type");
281
+ $pops.removeAttribute(TYPE_MODULE);
282
+ $pops.classList.remove("pops-iframe-unset-top");
283
+ $pops.classList.remove("pops-iframe-unset-left");
284
+ $pops.classList.remove("pops-iframe-unset-transform");
285
+
286
+ // 显示放大图标
287
+ headerMaxBtnElement.style.setProperty("display", "");
288
+ // 隐藏复位图标
289
+ headerMiseBtnElement.style.setProperty("display", "none");
290
+ }
291
+ if (typeof config?.btn?.mise?.callback === "function") {
292
+ config.btn.mise.callback(eventDetails, event);
293
+ }
306
294
  }
307
295
  );
308
296
  /* 关闭按钮点击事件 */
@@ -315,38 +303,9 @@ export class PopsIframe {
315
303
  guid,
316
304
  false
317
305
  );
318
- setTimeout(() => {
319
- let allIsMinElementList: HTMLElement[] = [];
320
- pops.config.layer.iframe.forEach((item) => {
321
- if (
322
- item.animElement != $anim &&
323
- $pops!.getAttribute("type-module") === "min"
324
- ) {
325
- allIsMinElementList.push(item.popsElement);
326
- }
327
- });
328
-
329
- allIsMinElementList.sort(
330
- PopsInstanceUtils.sortElementListByProperty(
331
- (obj) => {
332
- return parseInt(getComputedStyle(obj).left);
333
- },
334
- (obj) => {
335
- return parseInt(getComputedStyle(obj).left);
336
- },
337
- false
338
- )
339
- );
340
-
341
- allIsMinElementList.forEach((item, index) => {
342
- item.style.left = index * 205 + "px";
343
- });
344
- }, 1000 * 0.3);
345
-
346
- config.btn.close.callback(eventDetails, event);
347
- },
348
- {
349
- capture: true,
306
+ if (typeof config?.btn?.close?.callback === "function") {
307
+ config.btn.close.callback(eventDetails, event);
308
+ }
350
309
  }
351
310
  );
352
311
 
@@ -48,7 +48,8 @@
48
48
  overflow: hidden;
49
49
  width: auto;
50
50
  font-size: inherit;
51
- line-height: 2em;
51
+ line-height: normal;
52
+ align-content: center;
52
53
  }
53
54
  .pops[type-value="loading"] .pops-loading-content p[pops] {
54
55
  display: inline-block;
@@ -903,7 +903,7 @@ export const PanelHandleContentDetails = () => {
903
903
  setPanEvent() {
904
904
  const AnyTouch = popsUtils.AnyTouch();
905
905
  this.$tooltip = new AnyTouch(this.$ele.button, {
906
- preventEvent() {
906
+ preventDefault() {
907
907
  return false;
908
908
  },
909
909
  });
@@ -23,26 +23,28 @@
23
23
  text-overflow: ellipsis;
24
24
  white-space: nowrap;
25
25
  font-weight: 500;
26
- line-height: var(--container-title-height);
26
+ line-height: normal;
27
+ align-content: center;
27
28
  }
28
29
  .pops[type-value="panel"] .pops-panel-content {
29
30
  width: 100%;
30
- height: calc(
31
+ /*height: calc(
31
32
  100% - var(--container-title-height) - var(--container-bottom-btn-height)
32
- );
33
+ );*/
34
+ flex: 1;
33
35
  overflow: auto;
34
36
  word-break: break-word;
35
37
  }
36
38
  .pops[type-value="panel"] .pops-panel-btn {
37
- position: absolute;
38
- bottom: 0;
39
39
  display: flex;
40
40
  padding: 10px 10px 10px 10px;
41
41
  width: 100%;
42
42
  height: var(--container-bottom-btn-height);
43
+ max-height: var(--container-bottom-btn-height);
44
+ line-height: normal;
43
45
  border-top: 1px solid rgb(229, 229, 229, var(--pops-bd-opacity));
44
46
  text-align: right;
45
- line-height: var(--container-bottom-btn-height);
47
+ align-content: center;
46
48
  align-items: center;
47
49
  }
48
50
 
@@ -226,9 +228,14 @@ section.pops-panel-container
226
228
  align-items: center;
227
229
  position: relative;
228
230
  font-size: 14px;
229
- line-height: 20px;
231
+ line-height: normal;
232
+ align-content: center;
230
233
  height: 32px;
231
234
  vertical-align: middle;
235
+ user-select: none;
236
+ -webkit-user-select: none;
237
+ -ms-user-select: none;
238
+ -moz-user-select: none;
232
239
  }
233
240
  .pops-panel-switch input.pops-panel-switch__input {
234
241
  position: absolute;
@@ -287,7 +294,8 @@ section.pops-panel-container
287
294
  section.pops-panel-container .pops-panel-slider:has(> input[type="range"]) {
288
295
  overflow: hidden;
289
296
  height: 25px;
290
- line-height: 25px;
297
+ line-height: normal;
298
+ align-content: center;
291
299
  display: flex;
292
300
  align-items: center;
293
301
  }
@@ -360,6 +368,10 @@ section.pops-panel-container
360
368
  height: 32px;
361
369
  display: flex;
362
370
  align-items: center;
371
+ user-select: none;
372
+ -webkit-user-select: none;
373
+ -ms-user-select: none;
374
+ -moz-user-select: none;
363
375
  }
364
376
 
365
377
  .pops-slider-width {
@@ -575,7 +587,8 @@ section.pops-panel-container
575
587
  display: inline-flex;
576
588
  justify-content: center;
577
589
  align-items: center;
578
- line-height: 1;
590
+ line-height: normal;
591
+ align-content: center;
579
592
  height: 32px;
580
593
  white-space: nowrap;
581
594
  cursor: text;
@@ -622,7 +635,8 @@ section.pops-panel-container
622
635
  }
623
636
  .pops-panel-input .pops-panel-icon {
624
637
  height: inherit;
625
- line-height: inherit;
638
+ line-height: normal;
639
+ align-content: center;
626
640
  display: flex;
627
641
  justify-content: center;
628
642
  align-items: center;
@@ -694,7 +708,8 @@ section.pops-panel-container
694
708
  /* select的CSS */
695
709
  .pops-panel-select select {
696
710
  height: 32px;
697
- line-height: 32px;
711
+ line-height: normal;
712
+ align-content: center;
698
713
  min-width: 200px;
699
714
  border: 1px solid rgb(184, 184, 184, var(--pops-bd-opacity));
700
715
  border-radius: 5px;
@@ -751,7 +766,8 @@ section.pops-panel-container
751
766
  padding: 4px 12px;
752
767
  gap: 6px;
753
768
  min-height: 32px;
754
- line-height: 24px;
769
+ line-height: normal;
770
+ align-content: center;
755
771
  border-radius: var(--el-border-radius-base);
756
772
  background-color: var(--el-fill-color-blank);
757
773
  transition: var(--el-transition-duration);
@@ -815,7 +831,8 @@ section.pops-panel-container
815
831
  --color: inherit;
816
832
  height: 1em;
817
833
  width: 1em;
818
- line-height: 1em;
834
+ line-height: normal;
835
+ align-content: center;
819
836
  display: inline-flex;
820
837
  justify-content: center;
821
838
  align-items: center;
@@ -851,7 +868,8 @@ section.pops-panel-container
851
868
  height: 24px;
852
869
  padding: 0 9px;
853
870
  font-size: var(--el-tag-font-size);
854
- line-height: 1;
871
+ line-height: normal;
872
+ align-content: center;
855
873
  border-width: 1px;
856
874
  border-style: solid;
857
875
  border-radius: var(--el-tag-border-radius);
@@ -901,6 +919,7 @@ section.pops-panel-container
901
919
  .pops-panel-select-multiple .el-select__tags-text {
902
920
  display: block;
903
921
  line-height: normal;
922
+ align-content: center;
904
923
  overflow: hidden;
905
924
  text-overflow: ellipsis;
906
925
  white-space: nowrap;
@@ -16,31 +16,33 @@
16
16
  text-overflow: ellipsis;
17
17
  white-space: nowrap;
18
18
  font-weight: 500;
19
- line-height: var(--container-title-height);
20
- }
21
- .pops[type-value="prompt"] .pops-prompt-content p[pops] {
22
- padding: 5px 10px;
23
- color: rgb(51, 51, 51);
24
- text-indent: 15px;
19
+ line-height: normal;
20
+ align-content: center;
25
21
  }
26
22
  .pops[type-value="prompt"] .pops-prompt-content {
27
23
  width: 100%;
28
- height: calc(
24
+ /*height: calc(
29
25
  100% - var(--container-title-height) - var(--container-bottom-btn-height)
30
- );
26
+ );*/
27
+ flex: 1;
31
28
  overflow: auto;
32
29
  word-break: break-word;
33
30
  }
31
+ .pops[type-value="prompt"] .pops-prompt-content p[pops] {
32
+ padding: 5px 10px;
33
+ color: rgb(51, 51, 51);
34
+ text-indent: 15px;
35
+ }
34
36
  .pops[type-value="prompt"] .pops-prompt-btn {
35
- position: absolute;
36
- bottom: 0;
37
37
  display: flex;
38
38
  padding: 10px 10px 10px 10px;
39
39
  width: 100%;
40
40
  height: var(--container-bottom-btn-height);
41
+ max-height: var(--container-bottom-btn-height);
42
+ line-height: normal;
43
+ align-content: center;
41
44
  border-top: 1px solid rgb(229, 229, 229, var(--pops-bd-opacity));
42
45
  text-align: right;
43
- line-height: var(--container-bottom-btn-height);
44
46
  align-items: center;
45
47
  }
46
48
  .pops[type-value="prompt"] input[pops] {
@@ -30,7 +30,8 @@
30
30
  i.pops-rightClickMenu-icon {
31
31
  height: 1em;
32
32
  width: 1em;
33
- line-height: 1em;
33
+ line-height: normal;
34
+ align-content: center;
34
35
  display: inline-flex;
35
36
  justify-content: center;
36
37
  align-items: center;
@@ -45,7 +45,7 @@
45
45
  display: flex;
46
46
  align-items: center;
47
47
  height: var(--button-height);
48
- line-height: 1;
48
+ line-height: normal;
49
49
  box-sizing: border-box;
50
50
  user-select: none;
51
51
  -webkit-user-select: none;
@@ -20,5 +20,19 @@
20
20
  border: 0;
21
21
  }
22
22
  .pops-no-border-important {
23
- border: 0;
23
+ border: 0 !important;
24
+ }
25
+ .pops-user-select-none {
26
+ user-select: none;
27
+ -webkit-user-select: none;
28
+ -ms-user-select: none;
29
+ -moz-user-select: none;
30
+ }
31
+ .pops-line-height-center {
32
+ line-height: normal;
33
+ align-content: center;
34
+ }
35
+ .pops-width-fill {
36
+ width: -webkit-fill-available;
37
+ width: -moz-available;
24
38
  }
package/src/css/index.css CHANGED
@@ -25,6 +25,8 @@
25
25
  box-sizing: border-box;
26
26
  overflow: hidden;
27
27
  transition: all 0.35s;
28
+ display: flex;
29
+ flex-direction: column;
28
30
  }
29
31
  .pops-anim {
30
32
  position: fixed;
@@ -51,7 +53,7 @@
51
53
  .pops i.pops-bottom-icon {
52
54
  height: 1em;
53
55
  width: 1em;
54
- line-height: 1em;
56
+ line-height: normal;
55
57
  display: inline-flex;
56
58
  justify-content: center;
57
59
  align-items: center;
@@ -90,9 +92,6 @@
90
92
  .pops-header-controls button.pops-header-control[type="max"],
91
93
  .pops-header-controls button.pops-header-control[type="mise"],
92
94
  .pops-header-controls button.pops-header-control[type="min"] {
93
- position: relative;
94
- float: right;
95
- margin: 0 2px;
96
95
  outline: 0 !important;
97
96
  border: 0;
98
97
  border-color: rgb(136, 136, 136, var(--pops-bd-opacity));
@@ -122,14 +121,25 @@ button.pops-header-control {
122
121
  background: 0 0;
123
122
  cursor: pointer;
124
123
  position: unset;
125
- line-height: 1.15;
124
+ line-height: normal;
126
125
  }
127
126
  button.pops-header-control i:hover {
128
127
  color: rgb(64, 158, 255);
129
128
  }
130
129
  .pops-header-controls[data-margin] button.pops-header-control {
131
130
  margin: 0 6px;
131
+ display: flex;
132
+ align-items: center;
132
133
  }
133
134
  .pops[type-value] .pops-header-controls {
134
135
  display: flex;
136
+ gap: 6px;
137
+ }
138
+
139
+ /* 标题禁止选中文字 */
140
+ .pops [class^="pops"][class*="-title"] p[pops] {
141
+ -webkit-user-select: none;
142
+ -moz-user-select: none;
143
+ -ms-user-select: none;
144
+ user-select: none;
135
145
  }