@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.
@@ -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>
@@ -6123,9 +6020,7 @@ var pops = (function () {
6123
6020
  PopsSafeUtils.setSafeHTML(liElement,
6124
6021
  /*html*/ `
6125
6022
  <div class="pops-panel-item-left-text">
6126
- <p class="pops-panel-item-left-main-text">${formConfig.text}</p>
6127
- ${leftDescriptionText}
6128
- </div>
6023
+ <p class="pops-panel-item-left-main-text">${formConfig.text}</p>${leftDescriptionText}</div>
6129
6024
  <div class="pops-panel-switch">
6130
6025
  <input class="pops-panel-switch__input" type="checkbox">
6131
6026
  <span class="pops-panel-switch__core">
@@ -6225,9 +6120,7 @@ var pops = (function () {
6225
6120
  PopsSafeUtils.setSafeHTML(liElement,
6226
6121
  /*html*/ `
6227
6122
  <div class="pops-panel-item-left-text">
6228
- <p class="pops-panel-item-left-main-text">${formConfig.text}</p>
6229
- ${leftDescriptionText}
6230
- </div>
6123
+ <p class="pops-panel-item-left-main-text">${formConfig.text}</p>${leftDescriptionText}</div>
6231
6124
  <div class="pops-panel-slider">
6232
6125
  <input type="range" min="${formConfig.min}" max="${formConfig.max}">
6233
6126
  </div>
@@ -6290,9 +6183,7 @@ var pops = (function () {
6290
6183
  PopsSafeUtils.setSafeHTML(liElement,
6291
6184
  /*html*/ `
6292
6185
  <div class="pops-panel-item-left-text" style="flex: 1;">
6293
- <p class="pops-panel-item-left-main-text">${formConfig.text}</p>
6294
- ${leftDescriptionText}
6295
- </div>
6186
+ <p class="pops-panel-item-left-main-text">${formConfig.text}</p>${leftDescriptionText}</div>
6296
6187
  <div class="pops-slider pops-slider-width">
6297
6188
  <div class="pops-slider__runway">
6298
6189
  <div class="pops-slider__bar" style="width: 0%; left: 0%"></div>
@@ -6853,9 +6744,7 @@ var pops = (function () {
6853
6744
  PopsSafeUtils.setSafeHTML(liElement,
6854
6745
  /*html*/ `
6855
6746
  <div class="pops-panel-item-left-text">
6856
- <p class="pops-panel-item-left-main-text">${formConfig.text}</p>
6857
- ${leftDescriptionText}
6858
- </div>
6747
+ <p class="pops-panel-item-left-main-text">${formConfig.text}</p>${leftDescriptionText}</div>
6859
6748
  <div class="pops-panel-input pops-user-select-none">
6860
6749
  <input type="${inputType}" placeholder="${formConfig.placeholder}">
6861
6750
  </div>
@@ -7050,12 +6939,9 @@ var pops = (function () {
7050
6939
  PopsSafeUtils.setSafeHTML(liElement,
7051
6940
  /*html*/ `
7052
6941
  <div class="pops-panel-item-left-text">
7053
- <p class="pops-panel-item-left-main-text">${formConfig.text}</p>
7054
- ${leftDescriptionText}
7055
- </div>
6942
+ <p class="pops-panel-item-left-main-text">${formConfig.text}</p>${leftDescriptionText}</div>
7056
6943
  <div class="pops-panel-textarea">
7057
- <textarea placeholder="${formConfig.placeholder ?? ""}">
7058
- </textarea>
6944
+ <textarea placeholder="${formConfig.placeholder ?? ""}"></textarea>
7059
6945
  </div>
7060
6946
  `);
7061
6947
  const PopsPanelTextArea = {
@@ -7125,9 +7011,7 @@ var pops = (function () {
7125
7011
  PopsSafeUtils.setSafeHTML(liElement,
7126
7012
  /*html*/ `
7127
7013
  <div class="pops-panel-item-left-text">
7128
- <p class="pops-panel-item-left-main-text">${formConfig.text}</p>
7129
- ${leftDescriptionText}
7130
- </div>
7014
+ <p class="pops-panel-item-left-main-text">${formConfig.text}</p>${leftDescriptionText}</div>
7131
7015
  <div class="pops-panel-select pops-user-select-none">
7132
7016
  <select></select>
7133
7017
  </div>
@@ -7321,9 +7205,7 @@ var pops = (function () {
7321
7205
  PopsSafeUtils.setSafeHTML(liElement,
7322
7206
  /*html*/ `
7323
7207
  <div class="pops-panel-item-left-text">
7324
- <p class="pops-panel-item-left-main-text">${formConfig.text}</p>
7325
- ${leftDescriptionText}
7326
- </div>
7208
+ <p class="pops-panel-item-left-main-text">${formConfig.text}</p>${leftDescriptionText}</div>
7327
7209
  <div class="pops-panel-select-multiple">
7328
7210
  <div class="el-select__wrapper">
7329
7211
  <div class="el-select__selection">
@@ -7616,9 +7498,7 @@ var pops = (function () {
7616
7498
  function createSelectItemElement(dataInfo) {
7617
7499
  let $item = popsDOMUtils.createElement("li", {
7618
7500
  className: "select-item",
7619
- innerHTML: /*html*/ `
7620
- <span>${dataInfo.text}</span>
7621
- `,
7501
+ innerHTML: /*html*/ `<span>${dataInfo.text}</span>`,
7622
7502
  });
7623
7503
  Reflect.set($item, "data-info", dataInfo);
7624
7504
  return $item;
@@ -7880,9 +7760,7 @@ var pops = (function () {
7880
7760
  PopsSafeUtils.setSafeHTML(liElement,
7881
7761
  /*html*/ `
7882
7762
  <div class="pops-panel-item-left-text">
7883
- <p class="pops-panel-item-left-main-text">${formConfig.text}</p>
7884
- ${leftDescriptionText}
7885
- </div>
7763
+ <p class="pops-panel-item-left-main-text">${formConfig.text}</p>${leftDescriptionText}</div>
7886
7764
  <div class="pops-panel-button">
7887
7765
  <button class="pops-panel-button_inner">
7888
7766
  <i class="pops-bottom-icon"></i>
@@ -8047,13 +7925,8 @@ var pops = (function () {
8047
7925
  PopsSafeUtils.setSafeHTML($li,
8048
7926
  /*html*/ `
8049
7927
  <div class="pops-panel-item-left-text">
8050
- <p class="pops-panel-item-left-main-text">${formConfig.text}</p>
8051
- ${leftDescriptionText}
8052
- </div>
8053
- <div class="pops-panel-deepMenu">
8054
- ${rightText}
8055
- ${arrowRightIconHTML}
8056
- </div>
7928
+ <p class="pops-panel-item-left-main-text">${formConfig.text}</p>${leftDescriptionText}</div>
7929
+ <div class="pops-panel-deepMenu">${rightText}${arrowRightIconHTML}</div>
8057
7930
  `);
8058
7931
  const PopsPanelDeepMenu = {
8059
7932
  [Symbol.toStringTag]: "PopsPanelDeepMenu",
@@ -8436,15 +8309,9 @@ var pops = (function () {
8436
8309
  let { headerStyle, headerPStyle } = PopsElementHandler.getHeaderStyle(PopsType, config);
8437
8310
  let animHTML = PopsElementHandler.getAnimHTML(guid, PopsType, config,
8438
8311
  /*html*/ `
8439
- <div
8440
- class="pops-${PopsType}-title"
8441
- style="text-align: ${config.title.position};
8442
- ${headerStyle}">
8443
- ${config.title.html
8312
+ <div class="pops-${PopsType}-title" style="text-align: ${config.title.position};${headerStyle}">${config.title.html
8444
8313
  ? config.title.text
8445
- : `<p pops style="${headerPStyle}">${config.title.text}</p>`}
8446
- ${headerBtnHTML}
8447
- </div>
8314
+ : `<p pops style="${headerPStyle}">${config.title.text}</p>`}${headerBtnHTML}</div>
8448
8315
  <div class="pops-${PopsType}-content">
8449
8316
  <aside class="pops-${PopsType}-aside">
8450
8317
  <ul></ul>
@@ -8989,7 +8856,8 @@ var pops = (function () {
8989
8856
  /* 判断有无图标,有就添加进去 */
8990
8857
  if (typeof item.icon === "string" && item.icon.trim() !== "") {
8991
8858
  let iconSVGHTML = pops.config.iconSVG[item.icon] ?? item.icon;
8992
- 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>`);
8993
8861
  menuLiElement.appendChild(iconElement);
8994
8862
  }
8995
8863
  /* 插入文字 */
@@ -9006,7 +8874,9 @@ var pops = (function () {
9006
8874
  return;
9007
8875
  }
9008
8876
  function removeElement(element) {
9009
- element.querySelectorAll("ul li").forEach((ele) => {
8877
+ element
8878
+ .querySelectorAll("ul li")
8879
+ .forEach((ele) => {
9010
8880
  if (ele?.__menuData__?.child) {
9011
8881
  removeElement(ele.__menuData__.child);
9012
8882
  }
@@ -9223,9 +9093,7 @@ var pops = (function () {
9223
9093
  <style data-dynamic="true">
9224
9094
  ${this.getDynamicCSS()}
9225
9095
  </style>
9226
- <ul class="pops-${PopsType}-search-suggestion-hint">
9227
- ${config.toSearhNotResultHTML}
9228
- </ul>
9096
+ <ul class="pops-${PopsType}-search-suggestion-hint">${config.toSearhNotResultHTML}</ul>
9229
9097
  `,
9230
9098
  }, {
9231
9099
  "data-guid": guid,
@@ -9304,12 +9172,7 @@ var pops = (function () {
9304
9172
  className: `pops-${PopsType}-search-suggestion-hint-item pops-flex-items-center pops-flex-y-center`,
9305
9173
  "data-index": index,
9306
9174
  "data-value": SearchSuggestion.getItemDataValue(data),
9307
- innerHTML: `
9308
- ${config.getItemHTML(data)}
9309
- ${config.deleteIcon.enable
9310
- ? SearchSuggestion.getDeleteIconHTML()
9311
- : ""}
9312
- `,
9175
+ innerHTML: `${config.getItemHTML(data)}${config.deleteIcon.enable ? SearchSuggestion.getDeleteIconHTML() : ""}`,
9313
9176
  });
9314
9177
  },
9315
9178
  /**
@@ -10192,7 +10055,7 @@ var pops = (function () {
10192
10055
  /** 配置 */
10193
10056
  config = {
10194
10057
  /** 版本号 */
10195
- version: "2025.3.2",
10058
+ version: "2025.5.1",
10196
10059
  cssText: {
10197
10060
  /** 主CSS */
10198
10061
  index: indexCSS,