@whitesev/pops 2.0.2 → 2.0.3

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.umd.js CHANGED
@@ -2475,7 +2475,7 @@
2475
2475
  if (style.startsWith(";")) {
2476
2476
  style = style.replace(";", "");
2477
2477
  }
2478
- return `<div class="pops-mask" data-guid="${guid}" style="z-index:${zIndex};${style}"></div>`;
2478
+ return /*html*/ `<div class="pops-mask" data-guid="${guid}" style="z-index:${zIndex};${style}"></div>`;
2479
2479
  },
2480
2480
  /**
2481
2481
  * 获取动画层HTML
@@ -2503,23 +2503,10 @@
2503
2503
  }
2504
2504
  let hasBottomBtn = bottomBtnHTML.trim() === "" ? false : true;
2505
2505
  return /*html*/ `
2506
- <div
2507
- class="pops-anim"
2508
- anim="${__config.animation || ""}"
2509
- style="${popsAnimStyle}"
2510
- data-guid="${guid}">
2511
- ${config.style != null
2506
+ <div class="pops-anim" anim="${__config.animation || ""}" style="${popsAnimStyle}" data-guid="${guid}">${config.style != null
2512
2507
  ? `<style tyle="text/css">${config.style}</style>`
2513
2508
  : ""}
2514
- <div
2515
- class="pops ${config.class || ""}"
2516
- data-bottom-btn="${hasBottomBtn}"
2517
- type-value="${type}"
2518
- style="${popsStyle}"
2519
- position="${popsPosition}"
2520
- data-guid="${guid}">
2521
- ${html}
2522
- </div>
2509
+ <div class="pops ${config.class || ""}" data-bottom-btn="${hasBottomBtn}" type-value="${type}" style="${popsStyle}" position="${popsPosition}" data-guid="${guid}">${html}</div>
2523
2510
  </div>`;
2524
2511
  },
2525
2512
  /**
@@ -2544,22 +2531,20 @@
2544
2531
  let topRightButtonHTML = "";
2545
2532
  __config_iframe.topRightButton.split("|").forEach((item) => {
2546
2533
  item = item.toLowerCase();
2547
- topRightButtonHTML += `
2534
+ topRightButtonHTML += /*html*/ `
2548
2535
  <button class="pops-header-control" type="${item}">
2549
2536
  <i class="pops-icon">${pops.config.iconSVG[item]}</i>
2550
2537
  </button>`;
2551
2538
  });
2552
- resultHTML = `
2553
- <div class="pops-header-controls" data-margin>
2554
- ${topRightButtonHTML}
2555
- </div>`;
2539
+ resultHTML = /*html*/ `
2540
+ <div class="pops-header-controls" data-margin>${topRightButtonHTML}</div>`;
2556
2541
  }
2557
2542
  else {
2558
2543
  if (__config_confirm.btn?.close?.enable) {
2559
- closeHTML = `
2544
+ closeHTML = /*html*/ `
2560
2545
  <div class="pops-header-controls">
2561
2546
  <button class="pops-header-control" type="close" data-header>
2562
- <i class="pops-icon">${pops.config.iconSVG["close"]}</i>
2547
+ <i class="pops-icon">${pops.config.iconSVG["close"]}</i>
2563
2548
  </button>
2564
2549
  </div>`;
2565
2550
  }
@@ -2616,20 +2601,15 @@
2616
2601
  iconHTML = okIcon;
2617
2602
  }
2618
2603
  iconHTML = iconHTML || "";
2619
- okIconHTML = `
2620
- <i class="pops-bottom-icon" is-loading="${config.btn.ok.iconIsLoading}">
2621
- ${iconHTML}
2622
- </i>`;
2604
+ okIconHTML = /*html*/ `<i class="pops-bottom-icon" is-loading="${config.btn.ok.iconIsLoading}">${iconHTML}</i>`;
2623
2605
  }
2624
- okHTML = `
2606
+ okHTML = /*html*/ `
2625
2607
  <button
2626
2608
  class="pops-${type}-btn-ok ${okButtonSizeClassName}"
2627
2609
  type="${__config_confirm.btn.ok?.type}"
2628
2610
  data-has-icon="${(__config_confirm.btn.ok.icon || "") !== ""}"
2629
2611
  data-rightIcon="${__config_confirm.btn.ok?.rightIcon}"
2630
- >
2631
- ${okIconHTML}
2632
- <span>${config.btn.ok.text}</span>
2612
+ >${okIconHTML}<span>${config.btn.ok.text}</span>
2633
2613
  </button>`;
2634
2614
  }
2635
2615
  if (__config_confirm.btn?.cancel?.enable) {
@@ -2655,20 +2635,15 @@
2655
2635
  iconHTML = cancelIcon;
2656
2636
  }
2657
2637
  iconHTML = iconHTML || "";
2658
- cancelIconHTML = `
2659
- <i class="pops-bottom-icon" is-loading="${__config_confirm.btn.cancel.iconIsLoading}">
2660
- ${iconHTML}
2661
- </i>`;
2638
+ cancelIconHTML = /*html*/ `<i class="pops-bottom-icon" is-loading="${__config_confirm.btn.cancel.iconIsLoading}">${iconHTML}</i>`;
2662
2639
  }
2663
- cancelHTML = `
2640
+ cancelHTML = /*html*/ `
2664
2641
  <button
2665
2642
  class="pops-${type}-btn-cancel ${cancelButtonSizeClassName}"
2666
2643
  type="${__config_confirm.btn.cancel.type}"
2667
2644
  data-has-icon="${(__config_confirm.btn.cancel.icon || "") !== ""}"
2668
2645
  data-rightIcon="${__config_confirm.btn.cancel.rightIcon}"
2669
- >
2670
- ${cancelIconHTML}
2671
- <span>${__config_confirm.btn.cancel.text}</span>
2646
+ >${cancelIconHTML}<span>${__config_confirm.btn.cancel.text}</span>
2672
2647
  </button>`;
2673
2648
  }
2674
2649
  if (__config_confirm.btn?.other?.enable) {
@@ -2691,20 +2666,15 @@
2691
2666
  iconHTML = pops.config.iconSVG[otherIcon];
2692
2667
  }
2693
2668
  iconHTML = iconHTML || "";
2694
- otherIconHTML = `
2695
- <i class="pops-bottom-icon" is-loading="${__config_confirm.btn.other.iconIsLoading}">
2696
- ${iconHTML}
2697
- </i>`;
2669
+ otherIconHTML = /*html*/ `<i class="pops-bottom-icon" is-loading="${__config_confirm.btn.other.iconIsLoading}">${iconHTML}</i>`;
2698
2670
  }
2699
- ohterHTML = `
2671
+ ohterHTML = /*html*/ `
2700
2672
  <button
2701
2673
  class="pops-${type}-btn-other ${otherButtonSizeClassName}"
2702
2674
  type="${__config_confirm.btn.other.type}"
2703
2675
  data-has-icon="${(__config_confirm.btn.other.icon || "") !== ""}"
2704
2676
  data-rightIcon="${__config_confirm.btn.other.rightIcon}"
2705
- >
2706
- ${otherIconHTML}
2707
- <span>${__config_confirm.btn.other.text}</span>
2677
+ >${otherIconHTML}<span>${__config_confirm.btn.other.text}</span>
2708
2678
  </button>`;
2709
2679
  }
2710
2680
  if (__config_confirm.btn.merge) {
@@ -2715,33 +2685,22 @@
2715
2685
  else {
2716
2686
  flexStyle += "flex-direction: row;";
2717
2687
  }
2718
- resultHTML = `
2719
- <div class="pops-${type}-btn" style="${btnStyle}">
2720
- ${ohterHTML}
2721
- <div
2688
+ resultHTML = /*html*/ `
2689
+ <div class="pops-${type}-btn" style="${btnStyle}">${ohterHTML}<div
2722
2690
  class="pops-${type}-btn-merge"
2723
- style="${flexStyle}">
2724
- ${okHTML}
2725
- ${cancelHTML}
2726
- </div>
2691
+ style="${flexStyle}">${okHTML}${cancelHTML}</div>
2727
2692
  </div>
2728
2693
  `;
2729
2694
  }
2730
2695
  else {
2731
- resultHTML = `
2732
- <div class="pops-${type}-btn" style="${btnStyle}">
2733
- ${okHTML}
2734
- ${cancelHTML}
2735
- ${ohterHTML}
2736
- </div>
2737
- `;
2696
+ resultHTML = /*html*/ `<div class="pops-${type}-btn" style="${btnStyle}">${okHTML}${cancelHTML}${ohterHTML}</div>`;
2738
2697
  }
2739
2698
  return resultHTML;
2740
2699
  },
2741
2700
  /**
2742
2701
  * 获取标题style
2743
- * @param type
2744
- * @param config
2702
+ * @param type 弹窗类型
2703
+ * @param config 弹窗配置
2745
2704
  */
2746
2705
  getHeaderStyle(type, config) {
2747
2706
  return {
@@ -2751,8 +2710,8 @@
2751
2710
  },
2752
2711
  /**
2753
2712
  * 获取内容style
2754
- * @param type
2755
- * @param config
2713
+ * @param type 弹窗类型
2714
+ * @param config 弹窗配置
2756
2715
  */
2757
2716
  getContentStyle(type, config) {
2758
2717
  return {
@@ -3296,21 +3255,12 @@
3296
3255
  let { contentStyle, contentPStyle } = PopsElementHandler.getContentStyle(PopsType, config);
3297
3256
  let animHTML = PopsElementHandler.getAnimHTML(guid, PopsType, config,
3298
3257
  /*html*/ `
3299
- <div
3300
- class="pops-alert-title"
3301
- style="text-align: ${config.title.position};
3302
- ${headerStyle}">
3303
- ${config.title.html
3258
+ <div class="pops-alert-title" style="text-align: ${config.title.position};${headerStyle}">${config.title.html
3304
3259
  ? config.title.text
3305
- : `<p pops style="${headerPStyle}">${config.title.text}</p>`}
3306
- ${headerBtnHTML}
3307
- </div>
3308
- <div class="pops-alert-content" style="${contentStyle}">
3309
- ${config.content.html
3260
+ : `<p pops style="${headerPStyle}">${config.title.text}</p>`}${headerBtnHTML}</div>
3261
+ <div class="pops-alert-content" style="${contentStyle}">${config.content.html
3310
3262
  ? config.content.text
3311
- : `<p pops style="${contentPStyle}">${config.content.text}</p>`}
3312
- </div>
3313
- ${bottomBtnHTML}`, bottomBtnHTML, zIndex);
3263
+ : `<p pops style="${contentPStyle}">${config.content.text}</p>`}</div>${bottomBtnHTML}`, bottomBtnHTML, zIndex);
3314
3264
  /**
3315
3265
  * 弹窗的主元素,包括动画层
3316
3266
  */
@@ -3487,22 +3437,12 @@
3487
3437
  let { contentStyle, contentPStyle } = PopsElementHandler.getContentStyle(PopsType, config);
3488
3438
  let animHTML = PopsElementHandler.getAnimHTML(guid, PopsType, config,
3489
3439
  /*html*/ `
3490
- <div class="pops-confirm-title" style="text-align: ${config.title.position};${headerStyle}">
3491
- ${config.title.html
3440
+ <div class="pops-confirm-title" style="text-align: ${config.title.position};${headerStyle}">${config.title.html
3492
3441
  ? config.title.text
3493
- : `<p pops style="${headerPStyle}">${config.title.text}</p>`}
3494
- ${headerBtnHTML}
3495
- </div>
3496
- <div class="pops-confirm-content" style="${contentStyle}">
3497
- ${config.content.html
3442
+ : `<p pops style="${headerPStyle}">${config.title.text}</p>`}${headerBtnHTML}</div>
3443
+ <div class="pops-confirm-content" style="${contentStyle}">${config.content.html
3498
3444
  ? config.content.text
3499
- : `<p pops style="${contentPStyle}">${config.content.text}</p>`}
3500
-
3501
- </div>
3502
-
3503
-
3504
- ${bottomBtnHTML}
3505
- `, bottomBtnHTML, zIndex);
3445
+ : `<p pops style="${contentPStyle}">${config.content.text}</p>`}</div>${bottomBtnHTML}`, bottomBtnHTML, zIndex);
3506
3446
  /**
3507
3447
  * 弹窗的主元素,包括动画层
3508
3448
  */
@@ -3684,14 +3624,10 @@
3684
3624
  let { contentPStyle } = PopsElementHandler.getContentStyle(PopsType, config);
3685
3625
  let animHTML = PopsElementHandler.getAnimHTML(guid, PopsType, config,
3686
3626
  /*html*/ `
3687
- <div class="pops-prompt-title" style="text-align: ${config.title.position};${headerStyle}">
3688
- ${config.title.html
3627
+ <div class="pops-prompt-title" style="text-align: ${config.title.position};${headerStyle}">${config.title.html
3689
3628
  ? config.title.text
3690
- : `<p pops style="${headerPStyle}">${config.title.text}</p>`}
3691
- ${headerBtnHTML}
3692
- </div>
3693
- <div class="pops-prompt-content" style="${contentPStyle}">
3694
- ${config.content.row
3629
+ : `<p pops style="${headerPStyle}">${config.title.text}</p>`}${headerBtnHTML}</div>
3630
+ <div class="pops-prompt-content" style="${contentPStyle}">${config.content.row
3695
3631
  ? '<textarea pops="" placeholder="' +
3696
3632
  config.content.placeholder +
3697
3633
  '"></textarea>'
@@ -3699,10 +3635,7 @@
3699
3635
  config.content.placeholder +
3700
3636
  '" type="' +
3701
3637
  (config.content.password ? "password" : "text") +
3702
- '">'}
3703
- </div>
3704
- ${bottomBtnHTML}
3705
- `, bottomBtnHTML, zIndex);
3638
+ '">'}</div>${bottomBtnHTML}`, bottomBtnHTML, zIndex);
3706
3639
  /**
3707
3640
  * 弹窗的主元素,包括动画层
3708
3641
  */
@@ -3815,9 +3748,8 @@
3815
3748
  let { contentPStyle } = PopsElementHandler.getContentStyle("loading", config);
3816
3749
  let animHTML = PopsElementHandler.getAnimHTML(guid, PopsType, config,
3817
3750
  /*html*/ `
3818
- <div class="pops-loading-content">
3819
- ${config.addIndexCSS
3820
- ? `
3751
+ <div class="pops-loading-content">${config.addIndexCSS
3752
+ ? /*html*/ `
3821
3753
  <style data-model-name="index">${pops.config.cssText.index}</style>
3822
3754
  <style data-model-name="anim">${pops.config.cssText.anim}</style>
3823
3755
  <style data-model-name="common">${pops.config.cssText.common}</style>
@@ -3827,9 +3759,8 @@
3827
3759
  ${pops.config.cssText.loadingCSS}
3828
3760
  </style>
3829
3761
  ${config.style != null ? `<style>${config.style}</style>` : ""}
3830
- <p pops style="${contentPStyle}">${config.content.text}</p>
3831
- </div>
3832
- `, "", zIndex);
3762
+ <p pops style="${contentPStyle}">${config.content.text}</p>
3763
+ </div>`, "", zIndex);
3833
3764
  /**
3834
3765
  * 弹窗的主元素,包括动画层
3835
3766
  */
@@ -3963,27 +3894,16 @@
3963
3894
  let { headerStyle, headerPStyle } = PopsElementHandler.getHeaderStyle(PopsType, config);
3964
3895
  let animHTML = PopsElementHandler.getAnimHTML(guid, PopsType, config,
3965
3896
  /*html*/ `
3966
- <div
3967
- class="pops-iframe-title"
3968
- style="text-align: ${config.title.position};${headerStyle}"
3969
- >
3970
- ${config.title.html
3897
+ <div class="pops-iframe-title" style="text-align: ${config.title.position};${headerStyle}">${config.title.html
3971
3898
  ? titleText
3972
- : `<p pops style="${headerPStyle}">${titleText}</p>`}
3973
- ${headerBtnHTML}
3974
- </div>
3975
- <div class="pops-iframe-content">
3899
+ : `<p pops style="${headerPStyle}">${titleText}</p>`}${headerBtnHTML}</div>
3900
+ <div class="pops-iframe-content">
3976
3901
  <div class="pops-iframe-content-global-loading"></div>
3977
- <iframe
3978
- src="${config.url}"
3979
- pops
3980
- ${config.sandbox
3902
+ <iframe src="${config.url}" pops ${config.sandbox
3981
3903
  ? "sandbox='allow-forms allow-same-origin allow-scripts'"
3982
3904
  : ""}>
3983
3905
  </iframe>
3984
- </div>
3985
- ${config.loading.enable ? iframeLoadingHTML : ""}
3986
- `, "", zIndex);
3906
+ </div>${config.loading.enable ? iframeLoadingHTML : ""}`, "", zIndex);
3987
3907
  /**
3988
3908
  * 弹窗的主元素,包括动画层
3989
3909
  */
@@ -4289,29 +4209,14 @@
4289
4209
  let animHTML = PopsElementHandler.getAnimHTML(guid, PopsType, config,
4290
4210
  /*html*/ `
4291
4211
  ${config.title.enable
4292
- ? `
4293
- <div class="pops-${PopsType}-title" style="${headerStyle}">
4294
- ${config.title.html
4212
+ ? /*html*/ `
4213
+ <div class="pops-${PopsType}-title" style="${headerStyle}">${config.title.html
4295
4214
  ? config.title.text
4296
- : `<p
4297
- pops
4298
- style="
4299
- width: 100%;
4300
- text-align: ${config.title.position};
4301
- ${headerPStyle}">${config.title.text}</p>`}
4302
- ${headerBtnHTML}
4303
- </div>
4304
- `
4215
+ : /*html*/ `<p pops style="width: 100%;text-align: ${config.title.position};${headerPStyle}">${config.title.text}</p>`}${headerBtnHTML}</div>`
4305
4216
  : ""}
4306
-
4307
- <div class="pops-${PopsType}-content" style="${contentStyle}">
4308
- ${config.content.html
4217
+ <div class="pops-${PopsType}-content" style="${contentStyle}">${config.content.html
4309
4218
  ? config.content.text
4310
- : `<p pops style="${contentPStyle}">${config.content.text}</p>`}
4311
- </div>
4312
-
4313
- ${bottomBtnHTML}
4314
- `, bottomBtnHTML, zIndex);
4219
+ : `<p pops style="${contentPStyle}">${config.content.text}</p>`}</div>${bottomBtnHTML}`, bottomBtnHTML, zIndex);
4315
4220
  /**
4316
4221
  * 弹窗的主元素,包括动画层
4317
4222
  */
@@ -4693,14 +4598,12 @@
4693
4598
  let headerBtnHTML = PopsElementHandler.getHeaderBtnHTML(PopsType, config);
4694
4599
  let bottomBtnHTML = PopsElementHandler.getBottomBtnHTML(PopsType, config);
4695
4600
  let { headerStyle, headerPStyle } = PopsElementHandler.getHeaderStyle(PopsType, config);
4696
- let animHTML = PopsElementHandler.getAnimHTML(guid, PopsType, config, `
4697
- <div class="pops-folder-title" style="text-align: ${config.title.position};${headerStyle}">
4698
- ${config.title.html
4601
+ let animHTML = PopsElementHandler.getAnimHTML(guid, PopsType, config,
4602
+ /*html*/ `
4603
+ <div class="pops-folder-title" style="text-align: ${config.title.position};${headerStyle}">${config.title.html
4699
4604
  ? config.title.text
4700
- : `<p pops style="${headerPStyle}">${config.title.text}</p>`}
4701
- ${headerBtnHTML}
4702
- </div>
4703
- <div class="pops-folder-content ${pops.isPhone() ? "pops-mobile-folder-content" : ""}">
4605
+ : `<p pops style="${headerPStyle}">${config.title.text}</p>`}${headerBtnHTML}</div>
4606
+ <div class="pops-folder-content ${pops.isPhone() ? "pops-mobile-folder-content" : ""}">
4704
4607
  <div class="pops-folder-list">
4705
4608
  <div class="pops-folder-file-list-breadcrumb">
4706
4609
  <div class="pops-folder-file-list-breadcrumb-primary">
@@ -4712,7 +4615,6 @@
4712
4615
  <div class="pops-folder-list-table__header-div">
4713
4616
  <table class="pops-folder-list-table__header">
4714
4617
  <colgroup>
4715
- <!-- <col width="8%"> --!>
4716
4618
  <col width="52%">
4717
4619
  <col width="24%">
4718
4620
  <col width="16%">
@@ -4783,7 +4685,6 @@
4783
4685
  <div class="pops-folder-list-table__body-div">
4784
4686
  <table class="pops-folder-list-table__body">
4785
4687
  <colgroup>
4786
- <!-- <col width="8%"> --!>
4787
4688
  ${pops.isPhone()
4788
4689
  ? `<col width="100%">`
4789
4690
  : `
@@ -4798,9 +4699,7 @@
4798
4699
  </table>
4799
4700
  </div>
4800
4701
  </div>
4801
- </div>
4802
- ${bottomBtnHTML}
4803
- `, bottomBtnHTML, zIndex);
4702
+ </div>${bottomBtnHTML}`, bottomBtnHTML, zIndex);
4804
4703
  /**
4805
4704
  * 弹窗的主元素,包括动画层
4806
4705
  */
@@ -4981,9 +4880,7 @@
4981
4880
  <div class="pops-folder-list-file-name pops-mobile-folder-list-file-name cursor-p">
4982
4881
  <img src="${fileIcon}" alt="${fileType}" class="pops-folder-list-file-icon u-file-icon u-file-icon--list">
4983
4882
  <div>
4984
- <a title="${fileName}" class="pops-folder-list-file-name-title-text inline-block-v-middle text-ellip list-name-text">
4985
- ${fileName}
4986
- </a>
4883
+ <a title="${fileName}" class="pops-folder-list-file-name-title-text inline-block-v-middle text-ellip list-name-text">${fileName}</a>
4987
4884
  <span>${latestTime} ${fileSize}</span>
4988
4885
  </div>
4989
4886
  </div>
@@ -6126,9 +6023,7 @@
6126
6023
  PopsSafeUtils.setSafeHTML(liElement,
6127
6024
  /*html*/ `
6128
6025
  <div class="pops-panel-item-left-text">
6129
- <p class="pops-panel-item-left-main-text">${formConfig.text}</p>
6130
- ${leftDescriptionText}
6131
- </div>
6026
+ <p class="pops-panel-item-left-main-text">${formConfig.text}</p>${leftDescriptionText}</div>
6132
6027
  <div class="pops-panel-switch">
6133
6028
  <input class="pops-panel-switch__input" type="checkbox">
6134
6029
  <span class="pops-panel-switch__core">
@@ -6228,9 +6123,7 @@
6228
6123
  PopsSafeUtils.setSafeHTML(liElement,
6229
6124
  /*html*/ `
6230
6125
  <div class="pops-panel-item-left-text">
6231
- <p class="pops-panel-item-left-main-text">${formConfig.text}</p>
6232
- ${leftDescriptionText}
6233
- </div>
6126
+ <p class="pops-panel-item-left-main-text">${formConfig.text}</p>${leftDescriptionText}</div>
6234
6127
  <div class="pops-panel-slider">
6235
6128
  <input type="range" min="${formConfig.min}" max="${formConfig.max}">
6236
6129
  </div>
@@ -6293,9 +6186,7 @@
6293
6186
  PopsSafeUtils.setSafeHTML(liElement,
6294
6187
  /*html*/ `
6295
6188
  <div class="pops-panel-item-left-text" style="flex: 1;">
6296
- <p class="pops-panel-item-left-main-text">${formConfig.text}</p>
6297
- ${leftDescriptionText}
6298
- </div>
6189
+ <p class="pops-panel-item-left-main-text">${formConfig.text}</p>${leftDescriptionText}</div>
6299
6190
  <div class="pops-slider pops-slider-width">
6300
6191
  <div class="pops-slider__runway">
6301
6192
  <div class="pops-slider__bar" style="width: 0%; left: 0%"></div>
@@ -6856,9 +6747,7 @@
6856
6747
  PopsSafeUtils.setSafeHTML(liElement,
6857
6748
  /*html*/ `
6858
6749
  <div class="pops-panel-item-left-text">
6859
- <p class="pops-panel-item-left-main-text">${formConfig.text}</p>
6860
- ${leftDescriptionText}
6861
- </div>
6750
+ <p class="pops-panel-item-left-main-text">${formConfig.text}</p>${leftDescriptionText}</div>
6862
6751
  <div class="pops-panel-input pops-user-select-none">
6863
6752
  <input type="${inputType}" placeholder="${formConfig.placeholder}">
6864
6753
  </div>
@@ -7053,12 +6942,9 @@
7053
6942
  PopsSafeUtils.setSafeHTML(liElement,
7054
6943
  /*html*/ `
7055
6944
  <div class="pops-panel-item-left-text">
7056
- <p class="pops-panel-item-left-main-text">${formConfig.text}</p>
7057
- ${leftDescriptionText}
7058
- </div>
6945
+ <p class="pops-panel-item-left-main-text">${formConfig.text}</p>${leftDescriptionText}</div>
7059
6946
  <div class="pops-panel-textarea">
7060
- <textarea placeholder="${formConfig.placeholder ?? ""}">
7061
- </textarea>
6947
+ <textarea placeholder="${formConfig.placeholder ?? ""}"></textarea>
7062
6948
  </div>
7063
6949
  `);
7064
6950
  const PopsPanelTextArea = {
@@ -7128,9 +7014,7 @@
7128
7014
  PopsSafeUtils.setSafeHTML(liElement,
7129
7015
  /*html*/ `
7130
7016
  <div class="pops-panel-item-left-text">
7131
- <p class="pops-panel-item-left-main-text">${formConfig.text}</p>
7132
- ${leftDescriptionText}
7133
- </div>
7017
+ <p class="pops-panel-item-left-main-text">${formConfig.text}</p>${leftDescriptionText}</div>
7134
7018
  <div class="pops-panel-select pops-user-select-none">
7135
7019
  <select></select>
7136
7020
  </div>
@@ -7324,9 +7208,7 @@
7324
7208
  PopsSafeUtils.setSafeHTML(liElement,
7325
7209
  /*html*/ `
7326
7210
  <div class="pops-panel-item-left-text">
7327
- <p class="pops-panel-item-left-main-text">${formConfig.text}</p>
7328
- ${leftDescriptionText}
7329
- </div>
7211
+ <p class="pops-panel-item-left-main-text">${formConfig.text}</p>${leftDescriptionText}</div>
7330
7212
  <div class="pops-panel-select-multiple">
7331
7213
  <div class="el-select__wrapper">
7332
7214
  <div class="el-select__selection">
@@ -7619,9 +7501,7 @@
7619
7501
  function createSelectItemElement(dataInfo) {
7620
7502
  let $item = popsDOMUtils.createElement("li", {
7621
7503
  className: "select-item",
7622
- innerHTML: /*html*/ `
7623
- <span>${dataInfo.text}</span>
7624
- `,
7504
+ innerHTML: /*html*/ `<span>${dataInfo.text}</span>`,
7625
7505
  });
7626
7506
  Reflect.set($item, "data-info", dataInfo);
7627
7507
  return $item;
@@ -7883,9 +7763,7 @@
7883
7763
  PopsSafeUtils.setSafeHTML(liElement,
7884
7764
  /*html*/ `
7885
7765
  <div class="pops-panel-item-left-text">
7886
- <p class="pops-panel-item-left-main-text">${formConfig.text}</p>
7887
- ${leftDescriptionText}
7888
- </div>
7766
+ <p class="pops-panel-item-left-main-text">${formConfig.text}</p>${leftDescriptionText}</div>
7889
7767
  <div class="pops-panel-button">
7890
7768
  <button class="pops-panel-button_inner">
7891
7769
  <i class="pops-bottom-icon"></i>
@@ -8050,13 +7928,8 @@
8050
7928
  PopsSafeUtils.setSafeHTML($li,
8051
7929
  /*html*/ `
8052
7930
  <div class="pops-panel-item-left-text">
8053
- <p class="pops-panel-item-left-main-text">${formConfig.text}</p>
8054
- ${leftDescriptionText}
8055
- </div>
8056
- <div class="pops-panel-deepMenu">
8057
- ${rightText}
8058
- ${arrowRightIconHTML}
8059
- </div>
7931
+ <p class="pops-panel-item-left-main-text">${formConfig.text}</p>${leftDescriptionText}</div>
7932
+ <div class="pops-panel-deepMenu">${rightText}${arrowRightIconHTML}</div>
8060
7933
  `);
8061
7934
  const PopsPanelDeepMenu = {
8062
7935
  [Symbol.toStringTag]: "PopsPanelDeepMenu",
@@ -8439,15 +8312,9 @@
8439
8312
  let { headerStyle, headerPStyle } = PopsElementHandler.getHeaderStyle(PopsType, config);
8440
8313
  let animHTML = PopsElementHandler.getAnimHTML(guid, PopsType, config,
8441
8314
  /*html*/ `
8442
- <div
8443
- class="pops-${PopsType}-title"
8444
- style="text-align: ${config.title.position};
8445
- ${headerStyle}">
8446
- ${config.title.html
8315
+ <div class="pops-${PopsType}-title" style="text-align: ${config.title.position};${headerStyle}">${config.title.html
8447
8316
  ? config.title.text
8448
- : `<p pops style="${headerPStyle}">${config.title.text}</p>`}
8449
- ${headerBtnHTML}
8450
- </div>
8317
+ : `<p pops style="${headerPStyle}">${config.title.text}</p>`}${headerBtnHTML}</div>
8451
8318
  <div class="pops-${PopsType}-content">
8452
8319
  <aside class="pops-${PopsType}-aside">
8453
8320
  <ul></ul>
@@ -8992,7 +8859,8 @@
8992
8859
  /* 判断有无图标,有就添加进去 */
8993
8860
  if (typeof item.icon === "string" && item.icon.trim() !== "") {
8994
8861
  let iconSVGHTML = pops.config.iconSVG[item.icon] ?? item.icon;
8995
- let iconElement = popsUtils.parseTextToDOM(`<i class="pops-${PopsType}-icon" is-loading="${item.iconIsLoading}">${iconSVGHTML}</i>`);
8862
+ let iconElement = popsUtils.parseTextToDOM(
8863
+ /*html*/ `<i class="pops-${PopsType}-icon" is-loading="${item.iconIsLoading}">${iconSVGHTML}</i>`);
8996
8864
  menuLiElement.appendChild(iconElement);
8997
8865
  }
8998
8866
  /* 插入文字 */
@@ -9009,7 +8877,9 @@
9009
8877
  return;
9010
8878
  }
9011
8879
  function removeElement(element) {
9012
- element.querySelectorAll("ul li").forEach((ele) => {
8880
+ element
8881
+ .querySelectorAll("ul li")
8882
+ .forEach((ele) => {
9013
8883
  if (ele?.__menuData__?.child) {
9014
8884
  removeElement(ele.__menuData__.child);
9015
8885
  }
@@ -9226,9 +9096,7 @@
9226
9096
  <style data-dynamic="true">
9227
9097
  ${this.getDynamicCSS()}
9228
9098
  </style>
9229
- <ul class="pops-${PopsType}-search-suggestion-hint">
9230
- ${config.toSearhNotResultHTML}
9231
- </ul>
9099
+ <ul class="pops-${PopsType}-search-suggestion-hint">${config.toSearhNotResultHTML}</ul>
9232
9100
  `,
9233
9101
  }, {
9234
9102
  "data-guid": guid,
@@ -9307,12 +9175,7 @@
9307
9175
  className: `pops-${PopsType}-search-suggestion-hint-item pops-flex-items-center pops-flex-y-center`,
9308
9176
  "data-index": index,
9309
9177
  "data-value": SearchSuggestion.getItemDataValue(data),
9310
- innerHTML: `
9311
- ${config.getItemHTML(data)}
9312
- ${config.deleteIcon.enable
9313
- ? SearchSuggestion.getDeleteIconHTML()
9314
- : ""}
9315
- `,
9178
+ innerHTML: `${config.getItemHTML(data)}${config.deleteIcon.enable ? SearchSuggestion.getDeleteIconHTML() : ""}`,
9316
9179
  });
9317
9180
  },
9318
9181
  /**
@@ -10195,7 +10058,7 @@
10195
10058
  /** 配置 */
10196
10059
  config = {
10197
10060
  /** 版本号 */
10198
- version: "2025.3.2",
10061
+ version: "2025.5.1",
10199
10062
  cssText: {
10200
10063
  /** 主CSS */
10201
10064
  index: indexCSS,