@whitesev/pops 2.0.1 → 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.
@@ -2472,7 +2472,7 @@ var pops = (function () {
2472
2472
  if (style.startsWith(";")) {
2473
2473
  style = style.replace(";", "");
2474
2474
  }
2475
- return `<div class="pops-mask" data-guid="${guid}" style="z-index:${zIndex};${style}"></div>`;
2475
+ return /*html*/ `<div class="pops-mask" data-guid="${guid}" style="z-index:${zIndex};${style}"></div>`;
2476
2476
  },
2477
2477
  /**
2478
2478
  * 获取动画层HTML
@@ -2500,23 +2500,10 @@ var pops = (function () {
2500
2500
  }
2501
2501
  let hasBottomBtn = bottomBtnHTML.trim() === "" ? false : true;
2502
2502
  return /*html*/ `
2503
- <div
2504
- class="pops-anim"
2505
- anim="${__config.animation || ""}"
2506
- style="${popsAnimStyle}"
2507
- data-guid="${guid}">
2508
- ${config.style != null
2503
+ <div class="pops-anim" anim="${__config.animation || ""}" style="${popsAnimStyle}" data-guid="${guid}">${config.style != null
2509
2504
  ? `<style tyle="text/css">${config.style}</style>`
2510
2505
  : ""}
2511
- <div
2512
- class="pops ${config.class || ""}"
2513
- data-bottom-btn="${hasBottomBtn}"
2514
- type-value="${type}"
2515
- style="${popsStyle}"
2516
- position="${popsPosition}"
2517
- data-guid="${guid}">
2518
- ${html}
2519
- </div>
2506
+ <div class="pops ${config.class || ""}" data-bottom-btn="${hasBottomBtn}" type-value="${type}" style="${popsStyle}" position="${popsPosition}" data-guid="${guid}">${html}</div>
2520
2507
  </div>`;
2521
2508
  },
2522
2509
  /**
@@ -2541,22 +2528,20 @@ var pops = (function () {
2541
2528
  let topRightButtonHTML = "";
2542
2529
  __config_iframe.topRightButton.split("|").forEach((item) => {
2543
2530
  item = item.toLowerCase();
2544
- topRightButtonHTML += `
2531
+ topRightButtonHTML += /*html*/ `
2545
2532
  <button class="pops-header-control" type="${item}">
2546
2533
  <i class="pops-icon">${pops.config.iconSVG[item]}</i>
2547
2534
  </button>`;
2548
2535
  });
2549
- resultHTML = `
2550
- <div class="pops-header-controls" data-margin>
2551
- ${topRightButtonHTML}
2552
- </div>`;
2536
+ resultHTML = /*html*/ `
2537
+ <div class="pops-header-controls" data-margin>${topRightButtonHTML}</div>`;
2553
2538
  }
2554
2539
  else {
2555
2540
  if (__config_confirm.btn?.close?.enable) {
2556
- closeHTML = `
2541
+ closeHTML = /*html*/ `
2557
2542
  <div class="pops-header-controls">
2558
2543
  <button class="pops-header-control" type="close" data-header>
2559
- <i class="pops-icon">${pops.config.iconSVG["close"]}</i>
2544
+ <i class="pops-icon">${pops.config.iconSVG["close"]}</i>
2560
2545
  </button>
2561
2546
  </div>`;
2562
2547
  }
@@ -2613,20 +2598,15 @@ var pops = (function () {
2613
2598
  iconHTML = okIcon;
2614
2599
  }
2615
2600
  iconHTML = iconHTML || "";
2616
- okIconHTML = `
2617
- <i class="pops-bottom-icon" is-loading="${config.btn.ok.iconIsLoading}">
2618
- ${iconHTML}
2619
- </i>`;
2601
+ okIconHTML = /*html*/ `<i class="pops-bottom-icon" is-loading="${config.btn.ok.iconIsLoading}">${iconHTML}</i>`;
2620
2602
  }
2621
- okHTML = `
2603
+ okHTML = /*html*/ `
2622
2604
  <button
2623
2605
  class="pops-${type}-btn-ok ${okButtonSizeClassName}"
2624
2606
  type="${__config_confirm.btn.ok?.type}"
2625
2607
  data-has-icon="${(__config_confirm.btn.ok.icon || "") !== ""}"
2626
2608
  data-rightIcon="${__config_confirm.btn.ok?.rightIcon}"
2627
- >
2628
- ${okIconHTML}
2629
- <span>${config.btn.ok.text}</span>
2609
+ >${okIconHTML}<span>${config.btn.ok.text}</span>
2630
2610
  </button>`;
2631
2611
  }
2632
2612
  if (__config_confirm.btn?.cancel?.enable) {
@@ -2652,20 +2632,15 @@ var pops = (function () {
2652
2632
  iconHTML = cancelIcon;
2653
2633
  }
2654
2634
  iconHTML = iconHTML || "";
2655
- cancelIconHTML = `
2656
- <i class="pops-bottom-icon" is-loading="${__config_confirm.btn.cancel.iconIsLoading}">
2657
- ${iconHTML}
2658
- </i>`;
2635
+ cancelIconHTML = /*html*/ `<i class="pops-bottom-icon" is-loading="${__config_confirm.btn.cancel.iconIsLoading}">${iconHTML}</i>`;
2659
2636
  }
2660
- cancelHTML = `
2637
+ cancelHTML = /*html*/ `
2661
2638
  <button
2662
2639
  class="pops-${type}-btn-cancel ${cancelButtonSizeClassName}"
2663
2640
  type="${__config_confirm.btn.cancel.type}"
2664
2641
  data-has-icon="${(__config_confirm.btn.cancel.icon || "") !== ""}"
2665
2642
  data-rightIcon="${__config_confirm.btn.cancel.rightIcon}"
2666
- >
2667
- ${cancelIconHTML}
2668
- <span>${__config_confirm.btn.cancel.text}</span>
2643
+ >${cancelIconHTML}<span>${__config_confirm.btn.cancel.text}</span>
2669
2644
  </button>`;
2670
2645
  }
2671
2646
  if (__config_confirm.btn?.other?.enable) {
@@ -2688,20 +2663,15 @@ var pops = (function () {
2688
2663
  iconHTML = pops.config.iconSVG[otherIcon];
2689
2664
  }
2690
2665
  iconHTML = iconHTML || "";
2691
- otherIconHTML = `
2692
- <i class="pops-bottom-icon" is-loading="${__config_confirm.btn.other.iconIsLoading}">
2693
- ${iconHTML}
2694
- </i>`;
2666
+ otherIconHTML = /*html*/ `<i class="pops-bottom-icon" is-loading="${__config_confirm.btn.other.iconIsLoading}">${iconHTML}</i>`;
2695
2667
  }
2696
- ohterHTML = `
2668
+ ohterHTML = /*html*/ `
2697
2669
  <button
2698
2670
  class="pops-${type}-btn-other ${otherButtonSizeClassName}"
2699
2671
  type="${__config_confirm.btn.other.type}"
2700
2672
  data-has-icon="${(__config_confirm.btn.other.icon || "") !== ""}"
2701
2673
  data-rightIcon="${__config_confirm.btn.other.rightIcon}"
2702
- >
2703
- ${otherIconHTML}
2704
- <span>${__config_confirm.btn.other.text}</span>
2674
+ >${otherIconHTML}<span>${__config_confirm.btn.other.text}</span>
2705
2675
  </button>`;
2706
2676
  }
2707
2677
  if (__config_confirm.btn.merge) {
@@ -2712,33 +2682,22 @@ var pops = (function () {
2712
2682
  else {
2713
2683
  flexStyle += "flex-direction: row;";
2714
2684
  }
2715
- resultHTML = `
2716
- <div class="pops-${type}-btn" style="${btnStyle}">
2717
- ${ohterHTML}
2718
- <div
2685
+ resultHTML = /*html*/ `
2686
+ <div class="pops-${type}-btn" style="${btnStyle}">${ohterHTML}<div
2719
2687
  class="pops-${type}-btn-merge"
2720
- style="${flexStyle}">
2721
- ${okHTML}
2722
- ${cancelHTML}
2723
- </div>
2688
+ style="${flexStyle}">${okHTML}${cancelHTML}</div>
2724
2689
  </div>
2725
2690
  `;
2726
2691
  }
2727
2692
  else {
2728
- resultHTML = `
2729
- <div class="pops-${type}-btn" style="${btnStyle}">
2730
- ${okHTML}
2731
- ${cancelHTML}
2732
- ${ohterHTML}
2733
- </div>
2734
- `;
2693
+ resultHTML = /*html*/ `<div class="pops-${type}-btn" style="${btnStyle}">${okHTML}${cancelHTML}${ohterHTML}</div>`;
2735
2694
  }
2736
2695
  return resultHTML;
2737
2696
  },
2738
2697
  /**
2739
2698
  * 获取标题style
2740
- * @param type
2741
- * @param config
2699
+ * @param type 弹窗类型
2700
+ * @param config 弹窗配置
2742
2701
  */
2743
2702
  getHeaderStyle(type, config) {
2744
2703
  return {
@@ -2748,8 +2707,8 @@ var pops = (function () {
2748
2707
  },
2749
2708
  /**
2750
2709
  * 获取内容style
2751
- * @param type
2752
- * @param config
2710
+ * @param type 弹窗类型
2711
+ * @param config 弹窗配置
2753
2712
  */
2754
2713
  getContentStyle(type, config) {
2755
2714
  return {
@@ -3293,21 +3252,12 @@ var pops = (function () {
3293
3252
  let { contentStyle, contentPStyle } = PopsElementHandler.getContentStyle(PopsType, config);
3294
3253
  let animHTML = PopsElementHandler.getAnimHTML(guid, PopsType, config,
3295
3254
  /*html*/ `
3296
- <div
3297
- class="pops-alert-title"
3298
- style="text-align: ${config.title.position};
3299
- ${headerStyle}">
3300
- ${config.title.html
3255
+ <div class="pops-alert-title" style="text-align: ${config.title.position};${headerStyle}">${config.title.html
3301
3256
  ? config.title.text
3302
- : `<p pops style="${headerPStyle}">${config.title.text}</p>`}
3303
- ${headerBtnHTML}
3304
- </div>
3305
- <div class="pops-alert-content" style="${contentStyle}">
3306
- ${config.content.html
3257
+ : `<p pops style="${headerPStyle}">${config.title.text}</p>`}${headerBtnHTML}</div>
3258
+ <div class="pops-alert-content" style="${contentStyle}">${config.content.html
3307
3259
  ? config.content.text
3308
- : `<p pops style="${contentPStyle}">${config.content.text}</p>`}
3309
- </div>
3310
- ${bottomBtnHTML}`, bottomBtnHTML, zIndex);
3260
+ : `<p pops style="${contentPStyle}">${config.content.text}</p>`}</div>${bottomBtnHTML}`, bottomBtnHTML, zIndex);
3311
3261
  /**
3312
3262
  * 弹窗的主元素,包括动画层
3313
3263
  */
@@ -3484,22 +3434,12 @@ var pops = (function () {
3484
3434
  let { contentStyle, contentPStyle } = PopsElementHandler.getContentStyle(PopsType, config);
3485
3435
  let animHTML = PopsElementHandler.getAnimHTML(guid, PopsType, config,
3486
3436
  /*html*/ `
3487
- <div class="pops-confirm-title" style="text-align: ${config.title.position};${headerStyle}">
3488
- ${config.title.html
3437
+ <div class="pops-confirm-title" style="text-align: ${config.title.position};${headerStyle}">${config.title.html
3489
3438
  ? config.title.text
3490
- : `<p pops style="${headerPStyle}">${config.title.text}</p>`}
3491
- ${headerBtnHTML}
3492
- </div>
3493
- <div class="pops-confirm-content" style="${contentStyle}">
3494
- ${config.content.html
3439
+ : `<p pops style="${headerPStyle}">${config.title.text}</p>`}${headerBtnHTML}</div>
3440
+ <div class="pops-confirm-content" style="${contentStyle}">${config.content.html
3495
3441
  ? config.content.text
3496
- : `<p pops style="${contentPStyle}">${config.content.text}</p>`}
3497
-
3498
- </div>
3499
-
3500
-
3501
- ${bottomBtnHTML}
3502
- `, bottomBtnHTML, zIndex);
3442
+ : `<p pops style="${contentPStyle}">${config.content.text}</p>`}</div>${bottomBtnHTML}`, bottomBtnHTML, zIndex);
3503
3443
  /**
3504
3444
  * 弹窗的主元素,包括动画层
3505
3445
  */
@@ -3681,14 +3621,10 @@ var pops = (function () {
3681
3621
  let { contentPStyle } = PopsElementHandler.getContentStyle(PopsType, config);
3682
3622
  let animHTML = PopsElementHandler.getAnimHTML(guid, PopsType, config,
3683
3623
  /*html*/ `
3684
- <div class="pops-prompt-title" style="text-align: ${config.title.position};${headerStyle}">
3685
- ${config.title.html
3624
+ <div class="pops-prompt-title" style="text-align: ${config.title.position};${headerStyle}">${config.title.html
3686
3625
  ? config.title.text
3687
- : `<p pops style="${headerPStyle}">${config.title.text}</p>`}
3688
- ${headerBtnHTML}
3689
- </div>
3690
- <div class="pops-prompt-content" style="${contentPStyle}">
3691
- ${config.content.row
3626
+ : `<p pops style="${headerPStyle}">${config.title.text}</p>`}${headerBtnHTML}</div>
3627
+ <div class="pops-prompt-content" style="${contentPStyle}">${config.content.row
3692
3628
  ? '<textarea pops="" placeholder="' +
3693
3629
  config.content.placeholder +
3694
3630
  '"></textarea>'
@@ -3696,10 +3632,7 @@ var pops = (function () {
3696
3632
  config.content.placeholder +
3697
3633
  '" type="' +
3698
3634
  (config.content.password ? "password" : "text") +
3699
- '">'}
3700
- </div>
3701
- ${bottomBtnHTML}
3702
- `, bottomBtnHTML, zIndex);
3635
+ '">'}</div>${bottomBtnHTML}`, bottomBtnHTML, zIndex);
3703
3636
  /**
3704
3637
  * 弹窗的主元素,包括动画层
3705
3638
  */
@@ -3812,9 +3745,8 @@ var pops = (function () {
3812
3745
  let { contentPStyle } = PopsElementHandler.getContentStyle("loading", config);
3813
3746
  let animHTML = PopsElementHandler.getAnimHTML(guid, PopsType, config,
3814
3747
  /*html*/ `
3815
- <div class="pops-loading-content">
3816
- ${config.addIndexCSS
3817
- ? `
3748
+ <div class="pops-loading-content">${config.addIndexCSS
3749
+ ? /*html*/ `
3818
3750
  <style data-model-name="index">${pops.config.cssText.index}</style>
3819
3751
  <style data-model-name="anim">${pops.config.cssText.anim}</style>
3820
3752
  <style data-model-name="common">${pops.config.cssText.common}</style>
@@ -3824,9 +3756,8 @@ var pops = (function () {
3824
3756
  ${pops.config.cssText.loadingCSS}
3825
3757
  </style>
3826
3758
  ${config.style != null ? `<style>${config.style}</style>` : ""}
3827
- <p pops style="${contentPStyle}">${config.content.text}</p>
3828
- </div>
3829
- `, "", zIndex);
3759
+ <p pops style="${contentPStyle}">${config.content.text}</p>
3760
+ </div>`, "", zIndex);
3830
3761
  /**
3831
3762
  * 弹窗的主元素,包括动画层
3832
3763
  */
@@ -3960,27 +3891,16 @@ var pops = (function () {
3960
3891
  let { headerStyle, headerPStyle } = PopsElementHandler.getHeaderStyle(PopsType, config);
3961
3892
  let animHTML = PopsElementHandler.getAnimHTML(guid, PopsType, config,
3962
3893
  /*html*/ `
3963
- <div
3964
- class="pops-iframe-title"
3965
- style="text-align: ${config.title.position};${headerStyle}"
3966
- >
3967
- ${config.title.html
3894
+ <div class="pops-iframe-title" style="text-align: ${config.title.position};${headerStyle}">${config.title.html
3968
3895
  ? titleText
3969
- : `<p pops style="${headerPStyle}">${titleText}</p>`}
3970
- ${headerBtnHTML}
3971
- </div>
3972
- <div class="pops-iframe-content">
3896
+ : `<p pops style="${headerPStyle}">${titleText}</p>`}${headerBtnHTML}</div>
3897
+ <div class="pops-iframe-content">
3973
3898
  <div class="pops-iframe-content-global-loading"></div>
3974
- <iframe
3975
- src="${config.url}"
3976
- pops
3977
- ${config.sandbox
3899
+ <iframe src="${config.url}" pops ${config.sandbox
3978
3900
  ? "sandbox='allow-forms allow-same-origin allow-scripts'"
3979
3901
  : ""}>
3980
3902
  </iframe>
3981
- </div>
3982
- ${config.loading.enable ? iframeLoadingHTML : ""}
3983
- `, "", zIndex);
3903
+ </div>${config.loading.enable ? iframeLoadingHTML : ""}`, "", zIndex);
3984
3904
  /**
3985
3905
  * 弹窗的主元素,包括动画层
3986
3906
  */
@@ -4286,29 +4206,14 @@ var pops = (function () {
4286
4206
  let animHTML = PopsElementHandler.getAnimHTML(guid, PopsType, config,
4287
4207
  /*html*/ `
4288
4208
  ${config.title.enable
4289
- ? `
4290
- <div class="pops-${PopsType}-title" style="${headerStyle}">
4291
- ${config.title.html
4209
+ ? /*html*/ `
4210
+ <div class="pops-${PopsType}-title" style="${headerStyle}">${config.title.html
4292
4211
  ? config.title.text
4293
- : `<p
4294
- pops
4295
- style="
4296
- width: 100%;
4297
- text-align: ${config.title.position};
4298
- ${headerPStyle}">${config.title.text}</p>`}
4299
- ${headerBtnHTML}
4300
- </div>
4301
- `
4212
+ : /*html*/ `<p pops style="width: 100%;text-align: ${config.title.position};${headerPStyle}">${config.title.text}</p>`}${headerBtnHTML}</div>`
4302
4213
  : ""}
4303
-
4304
- <div class="pops-${PopsType}-content" style="${contentStyle}">
4305
- ${config.content.html
4214
+ <div class="pops-${PopsType}-content" style="${contentStyle}">${config.content.html
4306
4215
  ? config.content.text
4307
- : `<p pops style="${contentPStyle}">${config.content.text}</p>`}
4308
- </div>
4309
-
4310
- ${bottomBtnHTML}
4311
- `, bottomBtnHTML, zIndex);
4216
+ : `<p pops style="${contentPStyle}">${config.content.text}</p>`}</div>${bottomBtnHTML}`, bottomBtnHTML, zIndex);
4312
4217
  /**
4313
4218
  * 弹窗的主元素,包括动画层
4314
4219
  */
@@ -4690,14 +4595,12 @@ var pops = (function () {
4690
4595
  let headerBtnHTML = PopsElementHandler.getHeaderBtnHTML(PopsType, config);
4691
4596
  let bottomBtnHTML = PopsElementHandler.getBottomBtnHTML(PopsType, config);
4692
4597
  let { headerStyle, headerPStyle } = PopsElementHandler.getHeaderStyle(PopsType, config);
4693
- let animHTML = PopsElementHandler.getAnimHTML(guid, PopsType, config, `
4694
- <div class="pops-folder-title" style="text-align: ${config.title.position};${headerStyle}">
4695
- ${config.title.html
4598
+ let animHTML = PopsElementHandler.getAnimHTML(guid, PopsType, config,
4599
+ /*html*/ `
4600
+ <div class="pops-folder-title" style="text-align: ${config.title.position};${headerStyle}">${config.title.html
4696
4601
  ? config.title.text
4697
- : `<p pops style="${headerPStyle}">${config.title.text}</p>`}
4698
- ${headerBtnHTML}
4699
- </div>
4700
- <div class="pops-folder-content ${pops.isPhone() ? "pops-mobile-folder-content" : ""}">
4602
+ : `<p pops style="${headerPStyle}">${config.title.text}</p>`}${headerBtnHTML}</div>
4603
+ <div class="pops-folder-content ${pops.isPhone() ? "pops-mobile-folder-content" : ""}">
4701
4604
  <div class="pops-folder-list">
4702
4605
  <div class="pops-folder-file-list-breadcrumb">
4703
4606
  <div class="pops-folder-file-list-breadcrumb-primary">
@@ -4709,7 +4612,6 @@ var pops = (function () {
4709
4612
  <div class="pops-folder-list-table__header-div">
4710
4613
  <table class="pops-folder-list-table__header">
4711
4614
  <colgroup>
4712
- <!-- <col width="8%"> --!>
4713
4615
  <col width="52%">
4714
4616
  <col width="24%">
4715
4617
  <col width="16%">
@@ -4780,7 +4682,6 @@ var pops = (function () {
4780
4682
  <div class="pops-folder-list-table__body-div">
4781
4683
  <table class="pops-folder-list-table__body">
4782
4684
  <colgroup>
4783
- <!-- <col width="8%"> --!>
4784
4685
  ${pops.isPhone()
4785
4686
  ? `<col width="100%">`
4786
4687
  : `
@@ -4795,9 +4696,7 @@ var pops = (function () {
4795
4696
  </table>
4796
4697
  </div>
4797
4698
  </div>
4798
- </div>
4799
- ${bottomBtnHTML}
4800
- `, bottomBtnHTML, zIndex);
4699
+ </div>${bottomBtnHTML}`, bottomBtnHTML, zIndex);
4801
4700
  /**
4802
4701
  * 弹窗的主元素,包括动画层
4803
4702
  */
@@ -4978,9 +4877,7 @@ var pops = (function () {
4978
4877
  <div class="pops-folder-list-file-name pops-mobile-folder-list-file-name cursor-p">
4979
4878
  <img src="${fileIcon}" alt="${fileType}" class="pops-folder-list-file-icon u-file-icon u-file-icon--list">
4980
4879
  <div>
4981
- <a title="${fileName}" class="pops-folder-list-file-name-title-text inline-block-v-middle text-ellip list-name-text">
4982
- ${fileName}
4983
- </a>
4880
+ <a title="${fileName}" class="pops-folder-list-file-name-title-text inline-block-v-middle text-ellip list-name-text">${fileName}</a>
4984
4881
  <span>${latestTime} ${fileSize}</span>
4985
4882
  </div>
4986
4883
  </div>
@@ -6056,7 +5953,12 @@ var pops = (function () {
6056
5953
  return;
6057
5954
  }
6058
5955
  Object.keys(props).forEach((propName) => {
6059
- Reflect.set(element, propName, props[propName]);
5956
+ let value = props[propName];
5957
+ if (propName === "innerHTML") {
5958
+ PopsSafeUtils.setSafeHTML(element, value);
5959
+ return;
5960
+ }
5961
+ Reflect.set(element, propName, value);
6060
5962
  });
6061
5963
  },
6062
5964
  /**
@@ -6118,9 +6020,7 @@ var pops = (function () {
6118
6020
  PopsSafeUtils.setSafeHTML(liElement,
6119
6021
  /*html*/ `
6120
6022
  <div class="pops-panel-item-left-text">
6121
- <p class="pops-panel-item-left-main-text">${formConfig.text}</p>
6122
- ${leftDescriptionText}
6123
- </div>
6023
+ <p class="pops-panel-item-left-main-text">${formConfig.text}</p>${leftDescriptionText}</div>
6124
6024
  <div class="pops-panel-switch">
6125
6025
  <input class="pops-panel-switch__input" type="checkbox">
6126
6026
  <span class="pops-panel-switch__core">
@@ -6220,9 +6120,7 @@ var pops = (function () {
6220
6120
  PopsSafeUtils.setSafeHTML(liElement,
6221
6121
  /*html*/ `
6222
6122
  <div class="pops-panel-item-left-text">
6223
- <p class="pops-panel-item-left-main-text">${formConfig.text}</p>
6224
- ${leftDescriptionText}
6225
- </div>
6123
+ <p class="pops-panel-item-left-main-text">${formConfig.text}</p>${leftDescriptionText}</div>
6226
6124
  <div class="pops-panel-slider">
6227
6125
  <input type="range" min="${formConfig.min}" max="${formConfig.max}">
6228
6126
  </div>
@@ -6285,9 +6183,7 @@ var pops = (function () {
6285
6183
  PopsSafeUtils.setSafeHTML(liElement,
6286
6184
  /*html*/ `
6287
6185
  <div class="pops-panel-item-left-text" style="flex: 1;">
6288
- <p class="pops-panel-item-left-main-text">${formConfig.text}</p>
6289
- ${leftDescriptionText}
6290
- </div>
6186
+ <p class="pops-panel-item-left-main-text">${formConfig.text}</p>${leftDescriptionText}</div>
6291
6187
  <div class="pops-slider pops-slider-width">
6292
6188
  <div class="pops-slider__runway">
6293
6189
  <div class="pops-slider__bar" style="width: 0%; left: 0%"></div>
@@ -6848,9 +6744,7 @@ var pops = (function () {
6848
6744
  PopsSafeUtils.setSafeHTML(liElement,
6849
6745
  /*html*/ `
6850
6746
  <div class="pops-panel-item-left-text">
6851
- <p class="pops-panel-item-left-main-text">${formConfig.text}</p>
6852
- ${leftDescriptionText}
6853
- </div>
6747
+ <p class="pops-panel-item-left-main-text">${formConfig.text}</p>${leftDescriptionText}</div>
6854
6748
  <div class="pops-panel-input pops-user-select-none">
6855
6749
  <input type="${inputType}" placeholder="${formConfig.placeholder}">
6856
6750
  </div>
@@ -7045,12 +6939,9 @@ var pops = (function () {
7045
6939
  PopsSafeUtils.setSafeHTML(liElement,
7046
6940
  /*html*/ `
7047
6941
  <div class="pops-panel-item-left-text">
7048
- <p class="pops-panel-item-left-main-text">${formConfig.text}</p>
7049
- ${leftDescriptionText}
7050
- </div>
6942
+ <p class="pops-panel-item-left-main-text">${formConfig.text}</p>${leftDescriptionText}</div>
7051
6943
  <div class="pops-panel-textarea">
7052
- <textarea placeholder="${formConfig.placeholder ?? ""}">
7053
- </textarea>
6944
+ <textarea placeholder="${formConfig.placeholder ?? ""}"></textarea>
7054
6945
  </div>
7055
6946
  `);
7056
6947
  const PopsPanelTextArea = {
@@ -7120,9 +7011,7 @@ var pops = (function () {
7120
7011
  PopsSafeUtils.setSafeHTML(liElement,
7121
7012
  /*html*/ `
7122
7013
  <div class="pops-panel-item-left-text">
7123
- <p class="pops-panel-item-left-main-text">${formConfig.text}</p>
7124
- ${leftDescriptionText}
7125
- </div>
7014
+ <p class="pops-panel-item-left-main-text">${formConfig.text}</p>${leftDescriptionText}</div>
7126
7015
  <div class="pops-panel-select pops-user-select-none">
7127
7016
  <select></select>
7128
7017
  </div>
@@ -7316,9 +7205,7 @@ var pops = (function () {
7316
7205
  PopsSafeUtils.setSafeHTML(liElement,
7317
7206
  /*html*/ `
7318
7207
  <div class="pops-panel-item-left-text">
7319
- <p class="pops-panel-item-left-main-text">${formConfig.text}</p>
7320
- ${leftDescriptionText}
7321
- </div>
7208
+ <p class="pops-panel-item-left-main-text">${formConfig.text}</p>${leftDescriptionText}</div>
7322
7209
  <div class="pops-panel-select-multiple">
7323
7210
  <div class="el-select__wrapper">
7324
7211
  <div class="el-select__selection">
@@ -7611,9 +7498,7 @@ var pops = (function () {
7611
7498
  function createSelectItemElement(dataInfo) {
7612
7499
  let $item = popsDOMUtils.createElement("li", {
7613
7500
  className: "select-item",
7614
- innerHTML: /*html*/ `
7615
- <span>${dataInfo.text}</span>
7616
- `,
7501
+ innerHTML: /*html*/ `<span>${dataInfo.text}</span>`,
7617
7502
  });
7618
7503
  Reflect.set($item, "data-info", dataInfo);
7619
7504
  return $item;
@@ -7875,9 +7760,7 @@ var pops = (function () {
7875
7760
  PopsSafeUtils.setSafeHTML(liElement,
7876
7761
  /*html*/ `
7877
7762
  <div class="pops-panel-item-left-text">
7878
- <p class="pops-panel-item-left-main-text">${formConfig.text}</p>
7879
- ${leftDescriptionText}
7880
- </div>
7763
+ <p class="pops-panel-item-left-main-text">${formConfig.text}</p>${leftDescriptionText}</div>
7881
7764
  <div class="pops-panel-button">
7882
7765
  <button class="pops-panel-button_inner">
7883
7766
  <i class="pops-bottom-icon"></i>
@@ -8042,13 +7925,8 @@ var pops = (function () {
8042
7925
  PopsSafeUtils.setSafeHTML($li,
8043
7926
  /*html*/ `
8044
7927
  <div class="pops-panel-item-left-text">
8045
- <p class="pops-panel-item-left-main-text">${formConfig.text}</p>
8046
- ${leftDescriptionText}
8047
- </div>
8048
- <div class="pops-panel-deepMenu">
8049
- ${rightText}
8050
- ${arrowRightIconHTML}
8051
- </div>
7928
+ <p class="pops-panel-item-left-main-text">${formConfig.text}</p>${leftDescriptionText}</div>
7929
+ <div class="pops-panel-deepMenu">${rightText}${arrowRightIconHTML}</div>
8052
7930
  `);
8053
7931
  const PopsPanelDeepMenu = {
8054
7932
  [Symbol.toStringTag]: "PopsPanelDeepMenu",
@@ -8431,15 +8309,9 @@ var pops = (function () {
8431
8309
  let { headerStyle, headerPStyle } = PopsElementHandler.getHeaderStyle(PopsType, config);
8432
8310
  let animHTML = PopsElementHandler.getAnimHTML(guid, PopsType, config,
8433
8311
  /*html*/ `
8434
- <div
8435
- class="pops-${PopsType}-title"
8436
- style="text-align: ${config.title.position};
8437
- ${headerStyle}">
8438
- ${config.title.html
8312
+ <div class="pops-${PopsType}-title" style="text-align: ${config.title.position};${headerStyle}">${config.title.html
8439
8313
  ? config.title.text
8440
- : `<p pops style="${headerPStyle}">${config.title.text}</p>`}
8441
- ${headerBtnHTML}
8442
- </div>
8314
+ : `<p pops style="${headerPStyle}">${config.title.text}</p>`}${headerBtnHTML}</div>
8443
8315
  <div class="pops-${PopsType}-content">
8444
8316
  <aside class="pops-${PopsType}-aside">
8445
8317
  <ul></ul>
@@ -8984,7 +8856,8 @@ var pops = (function () {
8984
8856
  /* 判断有无图标,有就添加进去 */
8985
8857
  if (typeof item.icon === "string" && item.icon.trim() !== "") {
8986
8858
  let iconSVGHTML = pops.config.iconSVG[item.icon] ?? item.icon;
8987
- let iconElement = popsUtils.parseTextToDOM(`<i class="pops-${PopsType}-icon" is-loading="${item.iconIsLoading}">${iconSVGHTML}</i>`);
8859
+ let iconElement = popsUtils.parseTextToDOM(
8860
+ /*html*/ `<i class="pops-${PopsType}-icon" is-loading="${item.iconIsLoading}">${iconSVGHTML}</i>`);
8988
8861
  menuLiElement.appendChild(iconElement);
8989
8862
  }
8990
8863
  /* 插入文字 */
@@ -9001,7 +8874,9 @@ var pops = (function () {
9001
8874
  return;
9002
8875
  }
9003
8876
  function removeElement(element) {
9004
- element.querySelectorAll("ul li").forEach((ele) => {
8877
+ element
8878
+ .querySelectorAll("ul li")
8879
+ .forEach((ele) => {
9005
8880
  if (ele?.__menuData__?.child) {
9006
8881
  removeElement(ele.__menuData__.child);
9007
8882
  }
@@ -9218,9 +9093,7 @@ var pops = (function () {
9218
9093
  <style data-dynamic="true">
9219
9094
  ${this.getDynamicCSS()}
9220
9095
  </style>
9221
- <ul class="pops-${PopsType}-search-suggestion-hint">
9222
- ${config.toSearhNotResultHTML}
9223
- </ul>
9096
+ <ul class="pops-${PopsType}-search-suggestion-hint">${config.toSearhNotResultHTML}</ul>
9224
9097
  `,
9225
9098
  }, {
9226
9099
  "data-guid": guid,
@@ -9299,12 +9172,7 @@ var pops = (function () {
9299
9172
  className: `pops-${PopsType}-search-suggestion-hint-item pops-flex-items-center pops-flex-y-center`,
9300
9173
  "data-index": index,
9301
9174
  "data-value": SearchSuggestion.getItemDataValue(data),
9302
- innerHTML: `
9303
- ${config.getItemHTML(data)}
9304
- ${config.deleteIcon.enable
9305
- ? SearchSuggestion.getDeleteIconHTML()
9306
- : ""}
9307
- `,
9175
+ innerHTML: `${config.getItemHTML(data)}${config.deleteIcon.enable ? SearchSuggestion.getDeleteIconHTML() : ""}`,
9308
9176
  });
9309
9177
  },
9310
9178
  /**
@@ -10187,7 +10055,7 @@ var pops = (function () {
10187
10055
  /** 配置 */
10188
10056
  config = {
10189
10057
  /** 版本号 */
10190
- version: "2025.3.2",
10058
+ version: "2025.5.1",
10191
10059
  cssText: {
10192
10060
  /** 主CSS */
10193
10061
  index: indexCSS,