@whitesev/pops 2.2.1 → 2.2.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.
Files changed (44) hide show
  1. package/dist/index.amd.js +275 -263
  2. package/dist/index.amd.js.map +1 -1
  3. package/dist/index.cjs.js +275 -263
  4. package/dist/index.cjs.js.map +1 -1
  5. package/dist/index.esm.js +275 -263
  6. package/dist/index.esm.js.map +1 -1
  7. package/dist/index.iife.js +275 -263
  8. package/dist/index.iife.js.map +1 -1
  9. package/dist/index.system.js +275 -263
  10. package/dist/index.system.js.map +1 -1
  11. package/dist/index.umd.js +275 -263
  12. package/dist/index.umd.js.map +1 -1
  13. package/dist/types/src/Pops.d.ts +1 -1
  14. package/dist/types/src/components/panel/index.d.ts +2 -1
  15. package/dist/types/src/components/panel/types/components-input.d.ts +9 -1
  16. package/dist/types/src/components/panel/types/components-select.d.ts +6 -1
  17. package/dist/types/src/components/panel/types/components-switch.d.ts +6 -1
  18. package/dist/types/src/components/panel/types/components-textarea.d.ts +8 -2
  19. package/dist/types/src/components/searchSuggestion/index.d.ts +1 -1
  20. package/dist/types/src/handler/PopsElementHandler.d.ts +6 -6
  21. package/dist/types/src/handler/PopsHandler.d.ts +3 -3
  22. package/dist/types/src/types/components.d.ts +5 -5
  23. package/dist/types/src/types/main.d.ts +34 -31
  24. package/package.json +1 -1
  25. package/src/Pops.ts +1 -1
  26. package/src/components/alert/index.ts +15 -15
  27. package/src/components/confirm/index.ts +16 -15
  28. package/src/components/drawer/index.ts +16 -15
  29. package/src/components/folder/index.ts +141 -152
  30. package/src/components/iframe/index.ts +14 -13
  31. package/src/components/panel/handlerComponents.ts +25 -6
  32. package/src/components/panel/index.ts +19 -18
  33. package/src/components/panel/types/components-input.ts +9 -1
  34. package/src/components/panel/types/components-select.ts +6 -1
  35. package/src/components/panel/types/components-switch.ts +6 -1
  36. package/src/components/panel/types/components-textarea.ts +8 -2
  37. package/src/components/prompt/index.ts +15 -14
  38. package/src/components/rightClickMenu/index.ts +17 -16
  39. package/src/components/searchSuggestion/index.ts +21 -20
  40. package/src/components/tooltip/index.ts +3 -2
  41. package/src/handler/PopsElementHandler.ts +18 -18
  42. package/src/handler/PopsHandler.ts +13 -7
  43. package/src/types/components.d.ts +5 -5
  44. package/src/types/main.d.ts +34 -31
@@ -3949,6 +3949,10 @@ var pops = (function () {
3949
3949
  */
3950
3950
  handleOnly(type, config) {
3951
3951
  if (config.only) {
3952
+ // .loading
3953
+ // .tooltip
3954
+ // .rightClickMenu
3955
+ // 单独处理
3952
3956
  if (type === "loading" ||
3953
3957
  type === "tooltip" ||
3954
3958
  type === "rightClickMenu") {
@@ -4055,11 +4059,11 @@ var pops = (function () {
4055
4059
  init(details) {
4056
4060
  const guid = popsUtils.getRandomGUID();
4057
4061
  // 设置当前类型
4058
- const PopsType = "alert";
4062
+ const popsType = "alert";
4059
4063
  let config = PopsAlertConfig();
4060
4064
  config = popsUtils.assign(config, GlobalConfig.getGlobalConfig());
4061
4065
  config = popsUtils.assign(config, details);
4062
- config = PopsHandler.handleOnly(PopsType, config);
4066
+ config = PopsHandler.handleOnly(popsType, config);
4063
4067
  const { $shadowContainer, $shadowRoot } = PopsHandler.handlerShadow(config);
4064
4068
  PopsHandler.handleInit($shadowRoot, [
4065
4069
  {
@@ -4094,23 +4098,23 @@ var pops = (function () {
4094
4098
  // 先把z-index提取出来
4095
4099
  let zIndex = PopsHandler.handleZIndex(config.zIndex);
4096
4100
  let maskHTML = PopsElementHandler.getMaskHTML(guid, zIndex);
4097
- let headerBtnHTML = PopsElementHandler.getHeaderBtnHTML(PopsType, config);
4098
- let bottomBtnHTML = PopsElementHandler.getBottomBtnHTML(PopsType, config);
4099
- let { headerStyle, headerPStyle } = PopsElementHandler.getHeaderStyle(PopsType, config);
4100
- let { contentStyle, contentPStyle } = PopsElementHandler.getContentStyle(PopsType, config);
4101
- let animHTML = PopsElementHandler.getAnimHTML(guid, PopsType, config,
4101
+ let headerBtnHTML = PopsElementHandler.getHeaderBtnHTML(popsType, config);
4102
+ let bottomBtnHTML = PopsElementHandler.getBottomBtnHTML(popsType, config);
4103
+ let { headerStyle, headerPStyle } = PopsElementHandler.getHeaderStyle(popsType, config);
4104
+ let { contentStyle, contentPStyle } = PopsElementHandler.getContentStyle(popsType, config);
4105
+ let animHTML = PopsElementHandler.getAnimHTML(guid, popsType, config,
4102
4106
  /*html*/ `
4103
- <div class="pops-title pops-${PopsType}-title" style="text-align: ${config.title.position};${headerStyle}">${config.title.html
4107
+ <div class="pops-title pops-${popsType}-title" style="text-align: ${config.title.position};${headerStyle}">${config.title.html
4104
4108
  ? config.title.text
4105
- : `<p pops class="pops-${PopsType}-title-text" style="${headerPStyle}">${config.title.text}</p>`}${headerBtnHTML}</div>
4106
- <div class="pops-content pops-${PopsType}-content" style="${contentStyle}">${config.content.html
4109
+ : `<p pops class="pops-${popsType}-title-text" style="${headerPStyle}">${config.title.text}</p>`}${headerBtnHTML}</div>
4110
+ <div class="pops-content pops-${popsType}-content" style="${contentStyle}">${config.content.html
4107
4111
  ? config.content.text
4108
- : `<p pops class="pops-${PopsType}-content-text" style="${contentPStyle}">${config.content.text}</p>`}</div>${bottomBtnHTML}`, bottomBtnHTML, zIndex);
4112
+ : `<p pops class="pops-${popsType}-content-text" style="${contentPStyle}">${config.content.text}</p>`}</div>${bottomBtnHTML}`, bottomBtnHTML, zIndex);
4109
4113
  /**
4110
4114
  * 弹窗的主元素,包括动画层
4111
4115
  */
4112
4116
  let $anim = PopsElementHandler.parseElement(animHTML);
4113
- let { popsElement: $pops, headerCloseBtnElement: $headerCloseBtn, btnOkElement, titleElement: $title, } = PopsHandler.handleQueryElement($anim, PopsType);
4117
+ let { popsElement: $pops, headerCloseBtnElement: $headerCloseBtn, btnOkElement, titleElement: $title, } = PopsHandler.handleQueryElement($anim, popsType);
4114
4118
  /** 遮罩层元素 */
4115
4119
  let $mask = null;
4116
4120
  /** 已创建的元素列表 */
@@ -4118,7 +4122,7 @@ var pops = (function () {
4118
4122
  /* 遮罩层元素 */
4119
4123
  if (config.mask.enable) {
4120
4124
  let _handleMask_ = PopsHandler.handleMask({
4121
- type: PopsType,
4125
+ type: popsType,
4122
4126
  guid: guid,
4123
4127
  config: config,
4124
4128
  animElement: $anim,
@@ -4128,7 +4132,7 @@ var pops = (function () {
4128
4132
  elementList.push($mask);
4129
4133
  }
4130
4134
  /* 处理返回的配置 */
4131
- let eventDetails = PopsHandler.handleEventDetails(guid, $shadowContainer, $shadowRoot, PopsType, $anim, $pops, $mask, config);
4135
+ let eventDetails = PopsHandler.handleEventDetails(guid, $shadowContainer, $shadowRoot, popsType, $anim, $pops, $mask, config);
4132
4136
  /* 为顶部右边的关闭按钮添加点击事件 */
4133
4137
  PopsHandler.handleClickEvent("close", $headerCloseBtn, eventDetails, config.btn.close.callback);
4134
4138
  /* 为底部ok按钮添加点击事件 */
@@ -4144,7 +4148,7 @@ var pops = (function () {
4144
4148
  $anim.after($mask);
4145
4149
  }
4146
4150
  /* 保存 */
4147
- PopsHandler.handlePush(PopsType, {
4151
+ PopsHandler.handlePush(popsType, {
4148
4152
  guid: guid,
4149
4153
  animElement: $anim,
4150
4154
  popsElement: $pops,
@@ -4259,11 +4263,11 @@ var pops = (function () {
4259
4263
  init(details) {
4260
4264
  const guid = popsUtils.getRandomGUID();
4261
4265
  // 设置当前类型
4262
- const PopsType = "confirm";
4266
+ const popsType = "confirm";
4263
4267
  let config = PopsConfirmConfig();
4264
4268
  config = popsUtils.assign(config, GlobalConfig.getGlobalConfig());
4265
4269
  config = popsUtils.assign(config, details);
4266
- config = PopsHandler.handleOnly(PopsType, config);
4270
+ config = PopsHandler.handleOnly(popsType, config);
4267
4271
  const { $shadowContainer, $shadowRoot } = PopsHandler.handlerShadow(config);
4268
4272
  PopsHandler.handleInit($shadowRoot, [
4269
4273
  {
@@ -4298,23 +4302,23 @@ var pops = (function () {
4298
4302
  // 先把z-index提取出来
4299
4303
  let zIndex = PopsHandler.handleZIndex(config.zIndex);
4300
4304
  let maskHTML = PopsElementHandler.getMaskHTML(guid, zIndex);
4301
- let headerBtnHTML = PopsElementHandler.getHeaderBtnHTML(PopsType, config);
4302
- let bottomBtnHTML = PopsElementHandler.getBottomBtnHTML(PopsType, config);
4303
- let { headerStyle, headerPStyle } = PopsElementHandler.getHeaderStyle(PopsType, config);
4304
- let { contentStyle, contentPStyle } = PopsElementHandler.getContentStyle(PopsType, config);
4305
- let animHTML = PopsElementHandler.getAnimHTML(guid, PopsType, config,
4305
+ let headerBtnHTML = PopsElementHandler.getHeaderBtnHTML(popsType, config);
4306
+ let bottomBtnHTML = PopsElementHandler.getBottomBtnHTML(popsType, config);
4307
+ let { headerStyle, headerPStyle } = PopsElementHandler.getHeaderStyle(popsType, config);
4308
+ let { contentStyle, contentPStyle } = PopsElementHandler.getContentStyle(popsType, config);
4309
+ let animHTML = PopsElementHandler.getAnimHTML(guid, popsType, config,
4306
4310
  /*html*/ `
4307
- <div class="pops-title pops-${PopsType}-title" style="text-align: ${config.title.position};${headerStyle}">${config.title.html
4311
+ <div class="pops-title pops-${popsType}-title" style="text-align: ${config.title.position};${headerStyle}">${config.title.html
4308
4312
  ? config.title.text
4309
- : `<p pops class="pops-${PopsType}-title-text" style="${headerPStyle}">${config.title.text}</p>`}${headerBtnHTML}</div>
4310
- <div class="pops-content pops-${PopsType}-content" style="${contentStyle}">${config.content.html
4313
+ : `<p pops class="pops-${popsType}-title-text" style="${headerPStyle}">${config.title.text}</p>`}${headerBtnHTML}</div>
4314
+ <div class="pops-content pops-${popsType}-content" style="${contentStyle}">${config.content.html
4311
4315
  ? config.content.text
4312
- : `<p pops class="pops-${PopsType}-content-text" style="${contentPStyle}">${config.content.text}</p>`}</div>${bottomBtnHTML}`, bottomBtnHTML, zIndex);
4316
+ : `<p pops class="pops-${popsType}-content-text" style="${contentPStyle}">${config.content.text}</p>`}</div>${bottomBtnHTML}`, bottomBtnHTML, zIndex);
4313
4317
  /**
4314
4318
  * 弹窗的主元素,包括动画层
4315
4319
  */
4316
4320
  let $anim = PopsElementHandler.parseElement(animHTML);
4317
- let { popsElement: $pops, titleElement: $title, headerCloseBtnElement: $btnClose, btnOkElement: $btnOk, btnCancelElement: $btnCancel, btnOtherElement: $btnOther, } = PopsHandler.handleQueryElement($anim, PopsType);
4321
+ let { popsElement: $pops, titleElement: $title, headerCloseBtnElement: $btnClose, btnOkElement: $btnOk, btnCancelElement: $btnCancel, btnOtherElement: $btnOther, } = PopsHandler.handleQueryElement($anim, popsType);
4318
4322
  /**
4319
4323
  * 遮罩层元素
4320
4324
  */
@@ -4326,7 +4330,7 @@ var pops = (function () {
4326
4330
  if (config.mask.enable) {
4327
4331
  // 启用遮罩层
4328
4332
  let _handleMask_ = PopsHandler.handleMask({
4329
- type: PopsType,
4333
+ type: popsType,
4330
4334
  guid: guid,
4331
4335
  config: config,
4332
4336
  animElement: $anim,
@@ -4335,7 +4339,7 @@ var pops = (function () {
4335
4339
  $mask = _handleMask_.maskElement;
4336
4340
  elementList.push($mask);
4337
4341
  }
4338
- let eventDetails = PopsHandler.handleEventDetails(guid, $shadowContainer, $shadowRoot, PopsType, $anim, $pops, $mask, config);
4342
+ let eventDetails = PopsHandler.handleEventDetails(guid, $shadowContainer, $shadowRoot, popsType, $anim, $pops, $mask, config);
4339
4343
  PopsHandler.handleClickEvent("close", $btnClose, eventDetails, config.btn.close.callback);
4340
4344
  PopsHandler.handleClickEvent("ok", $btnOk, eventDetails, config.btn.ok.callback);
4341
4345
  PopsHandler.handleClickEvent("cancel", $btnCancel, eventDetails, config.btn.cancel.callback);
@@ -4349,7 +4353,7 @@ var pops = (function () {
4349
4353
  if ($mask != null) {
4350
4354
  $anim.after($mask);
4351
4355
  }
4352
- PopsHandler.handlePush(PopsType, {
4356
+ PopsHandler.handlePush(popsType, {
4353
4357
  guid: guid,
4354
4358
  animElement: $anim,
4355
4359
  popsElement: $pops,
@@ -4468,11 +4472,11 @@ var pops = (function () {
4468
4472
  init(details) {
4469
4473
  const guid = popsUtils.getRandomGUID();
4470
4474
  // 设置当前类型
4471
- const PopsType = "prompt";
4475
+ const popsType = "prompt";
4472
4476
  let config = PopsPromptConfig();
4473
4477
  config = popsUtils.assign(config, GlobalConfig.getGlobalConfig());
4474
4478
  config = popsUtils.assign(config, details);
4475
- config = PopsHandler.handleOnly(PopsType, config);
4479
+ config = PopsHandler.handleOnly(popsType, config);
4476
4480
  const { $shadowContainer, $shadowRoot } = PopsHandler.handlerShadow(config);
4477
4481
  PopsHandler.handleInit($shadowRoot, [
4478
4482
  {
@@ -4507,16 +4511,16 @@ var pops = (function () {
4507
4511
  // 先把z-index提取出来
4508
4512
  let zIndex = PopsHandler.handleZIndex(config.zIndex);
4509
4513
  let maskHTML = PopsElementHandler.getMaskHTML(guid, zIndex);
4510
- let headerBtnHTML = PopsElementHandler.getHeaderBtnHTML(PopsType, config);
4511
- let bottomBtnHTML = PopsElementHandler.getBottomBtnHTML(PopsType, config);
4512
- let { headerStyle, headerPStyle } = PopsElementHandler.getHeaderStyle(PopsType, config);
4513
- let { contentPStyle } = PopsElementHandler.getContentStyle(PopsType, config);
4514
- let animHTML = PopsElementHandler.getAnimHTML(guid, PopsType, config,
4514
+ let headerBtnHTML = PopsElementHandler.getHeaderBtnHTML(popsType, config);
4515
+ let bottomBtnHTML = PopsElementHandler.getBottomBtnHTML(popsType, config);
4516
+ let { headerStyle, headerPStyle } = PopsElementHandler.getHeaderStyle(popsType, config);
4517
+ let { contentPStyle } = PopsElementHandler.getContentStyle(popsType, config);
4518
+ let animHTML = PopsElementHandler.getAnimHTML(guid, popsType, config,
4515
4519
  /*html*/ `
4516
- <div class="pops-title pops-${PopsType}-title" style="text-align: ${config.title.position};${headerStyle}">${config.title.html
4520
+ <div class="pops-title pops-${popsType}-title" style="text-align: ${config.title.position};${headerStyle}">${config.title.html
4517
4521
  ? config.title.text
4518
- : `<p pops class="pops-${PopsType}-title-text" style="${headerPStyle}">${config.title.text}</p>`}${headerBtnHTML}</div>
4519
- <div class="pops-content pops-${PopsType}-content" style="${contentPStyle}">${config.content.row
4522
+ : `<p pops class="pops-${popsType}-title-text" style="${headerPStyle}">${config.title.text}</p>`}${headerBtnHTML}</div>
4523
+ <div class="pops-content pops-${popsType}-content" style="${contentPStyle}">${config.content.row
4520
4524
  ? '<textarea name="pops-input-text" pops="" placeholder="' +
4521
4525
  config.content.placeholder +
4522
4526
  '"></textarea>'
@@ -4529,7 +4533,7 @@ var pops = (function () {
4529
4533
  * 弹窗的主元素,包括动画层
4530
4534
  */
4531
4535
  let $anim = PopsElementHandler.parseElement(animHTML);
4532
- let { popsElement: $pops, inputElement: $input, headerCloseBtnElement: $btnClose, btnOkElement: $btnOk, btnCancelElement: $btnCancel, btnOtherElement: $btnOther, titleElement: $title, } = PopsHandler.handleQueryElement($anim, PopsType);
4536
+ let { popsElement: $pops, inputElement: $input, headerCloseBtnElement: $btnClose, btnOkElement: $btnOk, btnCancelElement: $btnCancel, btnOtherElement: $btnOther, titleElement: $title, } = PopsHandler.handleQueryElement($anim, popsType);
4533
4537
  /**
4534
4538
  * 遮罩层元素
4535
4539
  */
@@ -4541,7 +4545,7 @@ var pops = (function () {
4541
4545
  if (config.mask.enable) {
4542
4546
  // 启用遮罩层
4543
4547
  let _handleMask_ = PopsHandler.handleMask({
4544
- type: PopsType,
4548
+ type: popsType,
4545
4549
  guid: guid,
4546
4550
  config: config,
4547
4551
  animElement: $anim,
@@ -4550,7 +4554,7 @@ var pops = (function () {
4550
4554
  $mask = _handleMask_.maskElement;
4551
4555
  elementList.push($mask);
4552
4556
  }
4553
- let eventDetails = PopsHandler.handleEventDetails(guid, $shadowContainer, $shadowRoot, PopsType, $anim, $pops, $mask, config);
4557
+ let eventDetails = PopsHandler.handleEventDetails(guid, $shadowContainer, $shadowRoot, popsType, $anim, $pops, $mask, config);
4554
4558
  /* 输入框赋值初始值 */
4555
4559
  $input.value = config.content.text;
4556
4560
  PopsHandler.handlePromptClickEvent("close", $input, $btnClose, eventDetails, config.btn.close.callback);
@@ -4566,7 +4570,7 @@ var pops = (function () {
4566
4570
  if ($mask != null) {
4567
4571
  $anim.after($mask);
4568
4572
  }
4569
- PopsHandler.handlePush(PopsType, {
4573
+ PopsHandler.handlePush(popsType, {
4570
4574
  guid: guid,
4571
4575
  animElement: $anim,
4572
4576
  popsElement: $pops,
@@ -4761,14 +4765,14 @@ var pops = (function () {
4761
4765
  init(details) {
4762
4766
  const guid = popsUtils.getRandomGUID();
4763
4767
  // 设置当前类型
4764
- const PopsType = "iframe";
4768
+ const popsType = "iframe";
4765
4769
  let config = PopsIframeConfig();
4766
4770
  config = popsUtils.assign(config, GlobalConfig.getGlobalConfig());
4767
4771
  config = popsUtils.assign(config, details);
4768
4772
  if (config.url == null) {
4769
4773
  throw new Error("config.url不能为空");
4770
4774
  }
4771
- config = PopsHandler.handleOnly(PopsType, config);
4775
+ config = PopsHandler.handleOnly(popsType, config);
4772
4776
  const { $shadowContainer, $shadowRoot } = PopsHandler.handlerShadow(config);
4773
4777
  PopsHandler.handleInit($shadowRoot, [
4774
4778
  {
@@ -4804,17 +4808,17 @@ var pops = (function () {
4804
4808
  // 先把z-index提取出来
4805
4809
  let zIndex = PopsHandler.handleZIndex(config.zIndex);
4806
4810
  let maskHTML = PopsElementHandler.getMaskHTML(guid, zIndex, maskExtraStyle);
4807
- let headerBtnHTML = PopsElementHandler.getHeaderBtnHTML(PopsType, config);
4811
+ let headerBtnHTML = PopsElementHandler.getHeaderBtnHTML(popsType, config);
4808
4812
  let iframeLoadingHTML = '<div class="pops-loading"></div>';
4809
4813
  let titleText = config.title.text.trim() !== "" ? config.title.text : config.url;
4810
- let { headerStyle, headerPStyle } = PopsElementHandler.getHeaderStyle(PopsType, config);
4811
- let animHTML = PopsElementHandler.getAnimHTML(guid, PopsType, config,
4814
+ let { headerStyle, headerPStyle } = PopsElementHandler.getHeaderStyle(popsType, config);
4815
+ let animHTML = PopsElementHandler.getAnimHTML(guid, popsType, config,
4812
4816
  /*html*/ `
4813
- <div class="pops-title pops-${PopsType}-title" style="text-align: ${config.title.position};${headerStyle}">${config.title.html
4817
+ <div class="pops-title pops-${popsType}-title" style="text-align: ${config.title.position};${headerStyle}">${config.title.html
4814
4818
  ? titleText
4815
- : `<p pops class="pops-${PopsType}-title-text" style="${headerPStyle}">${titleText}</p>`}${headerBtnHTML}</div>
4816
- <div class="pops-content pops-${PopsType}-content">
4817
- <div class="pops-${PopsType}-content-global-loading"></div>
4819
+ : `<p pops class="pops-${popsType}-title-text" style="${headerPStyle}">${titleText}</p>`}${headerBtnHTML}</div>
4820
+ <div class="pops-content pops-${popsType}-content">
4821
+ <div class="pops-${popsType}-content-global-loading"></div>
4818
4822
  <iframe src="${config.url}" pops ${config.sandbox
4819
4823
  ? "sandbox='allow-forms allow-same-origin allow-scripts'"
4820
4824
  : ""}>
@@ -4824,7 +4828,7 @@ var pops = (function () {
4824
4828
  * 弹窗的主元素,包括动画层
4825
4829
  */
4826
4830
  let $anim = PopsElementHandler.parseElement(animHTML);
4827
- let { popsElement: $pops, headerCloseBtnElement, headerControlsElement, titleElement: $title, iframeElement: $iframe, loadingElement, contentLoadingElement: $contentLoading, headerMinBtnElement, headerMaxBtnElement, headerMiseBtnElement, } = PopsHandler.handleQueryElement($anim, PopsType);
4831
+ let { popsElement: $pops, headerCloseBtnElement, headerControlsElement, titleElement: $title, iframeElement: $iframe, loadingElement, contentLoadingElement: $contentLoading, headerMinBtnElement, headerMaxBtnElement, headerMiseBtnElement, } = PopsHandler.handleQueryElement($anim, popsType);
4828
4832
  let $iframeContainer = PopsCore.document.querySelector(".pops-iframe-container");
4829
4833
  if (!$iframeContainer) {
4830
4834
  $iframeContainer = PopsCore.document.createElement("div");
@@ -4843,7 +4847,7 @@ var pops = (function () {
4843
4847
  let elementList = [$anim];
4844
4848
  if (config.mask.enable) {
4845
4849
  let _handleMask_ = PopsHandler.handleMask({
4846
- type: PopsType,
4850
+ type: popsType,
4847
4851
  guid: guid,
4848
4852
  config: config,
4849
4853
  animElement: $anim,
@@ -4852,7 +4856,7 @@ var pops = (function () {
4852
4856
  $mask = _handleMask_.maskElement;
4853
4857
  elementList.push($mask);
4854
4858
  }
4855
- let eventDetails = PopsHandler.handleEventDetails(guid, $shadowContainer, $shadowRoot, PopsType, $anim, $pops, $mask, config);
4859
+ let eventDetails = PopsHandler.handleEventDetails(guid, $shadowContainer, $shadowRoot, popsType, $anim, $pops, $mask, config);
4856
4860
  eventDetails["iframeElement"] = $iframe;
4857
4861
  popsDOMUtils.on($anim, popsDOMUtils.getAnimationEndNameList(), function () {
4858
4862
  /* 动画加载完毕 */
@@ -4996,7 +5000,7 @@ var pops = (function () {
4996
5000
  }, {
4997
5001
  capture: true,
4998
5002
  });
4999
- PopsHandler.handlePush(PopsType, {
5003
+ PopsHandler.handlePush(popsType, {
5000
5004
  guid: guid,
5001
5005
  animElement: $anim,
5002
5006
  popsElement: $pops,
@@ -5100,11 +5104,11 @@ var pops = (function () {
5100
5104
  init(details) {
5101
5105
  const guid = popsUtils.getRandomGUID();
5102
5106
  // 设置当前类型
5103
- const PopsType = "drawer";
5107
+ const popsType = "drawer";
5104
5108
  let config = PopsDrawerConfig();
5105
5109
  config = popsUtils.assign(config, GlobalConfig.getGlobalConfig());
5106
5110
  config = popsUtils.assign(config, details);
5107
- config = PopsHandler.handleOnly(PopsType, config);
5111
+ config = PopsHandler.handleOnly(popsType, config);
5108
5112
  const { $shadowContainer, $shadowRoot } = PopsHandler.handlerShadow(config);
5109
5113
  PopsHandler.handleInit($shadowRoot, [
5110
5114
  {
@@ -5139,25 +5143,25 @@ var pops = (function () {
5139
5143
  // 先把z-index提取出来
5140
5144
  let zIndex = PopsHandler.handleZIndex(config.zIndex);
5141
5145
  let maskHTML = PopsElementHandler.getMaskHTML(guid, zIndex);
5142
- let headerBtnHTML = PopsElementHandler.getHeaderBtnHTML(PopsType, config);
5143
- let bottomBtnHTML = PopsElementHandler.getBottomBtnHTML(PopsType, config);
5144
- let { headerStyle, headerPStyle } = PopsElementHandler.getHeaderStyle(PopsType, config);
5145
- let { contentStyle, contentPStyle } = PopsElementHandler.getContentStyle(PopsType, config);
5146
- let animHTML = PopsElementHandler.getAnimHTML(guid, PopsType, config,
5146
+ let headerBtnHTML = PopsElementHandler.getHeaderBtnHTML(popsType, config);
5147
+ let bottomBtnHTML = PopsElementHandler.getBottomBtnHTML(popsType, config);
5148
+ let { headerStyle, headerPStyle } = PopsElementHandler.getHeaderStyle(popsType, config);
5149
+ let { contentStyle, contentPStyle } = PopsElementHandler.getContentStyle(popsType, config);
5150
+ let animHTML = PopsElementHandler.getAnimHTML(guid, popsType, config,
5147
5151
  /*html*/ `
5148
5152
  ${config.title.enable
5149
- ? /*html*/ `<div class="pops-title pops-${PopsType}-title" style="${headerStyle}">${config.title.html
5153
+ ? /*html*/ `<div class="pops-title pops-${popsType}-title" style="${headerStyle}">${config.title.html
5150
5154
  ? config.title.text
5151
- : /*html*/ `<p pops class="pops-${PopsType}-title-text" style="width: 100%;text-align: ${config.title.position};${headerPStyle}">${config.title.text}</p>`}${headerBtnHTML}</div>`
5155
+ : /*html*/ `<p pops class="pops-${popsType}-title-text" style="width: 100%;text-align: ${config.title.position};${headerPStyle}">${config.title.text}</p>`}${headerBtnHTML}</div>`
5152
5156
  : ""}
5153
- <div class="pops-content pops-${PopsType}-content" style="${contentStyle}">${config.content.html
5157
+ <div class="pops-content pops-${popsType}-content" style="${contentStyle}">${config.content.html
5154
5158
  ? config.content.text
5155
- : `<p pops class="pops-${PopsType}-content-text" style="${contentPStyle}">${config.content.text}</p>`}</div>${bottomBtnHTML}`, bottomBtnHTML, zIndex);
5159
+ : `<p pops class="pops-${popsType}-content-text" style="${contentPStyle}">${config.content.text}</p>`}</div>${bottomBtnHTML}`, bottomBtnHTML, zIndex);
5156
5160
  /**
5157
5161
  * 弹窗的主元素,包括动画层
5158
5162
  */
5159
5163
  let $anim = PopsElementHandler.parseElement(animHTML);
5160
- let { popsElement, headerCloseBtnElement, btnCancelElement, btnOkElement, btnOtherElement, } = PopsHandler.handleQueryElement($anim, PopsType);
5164
+ let { popsElement, headerCloseBtnElement, btnCancelElement, btnOkElement, btnOtherElement, } = PopsHandler.handleQueryElement($anim, popsType);
5161
5165
  let $pops = popsElement;
5162
5166
  let $headerCloseBtn = headerCloseBtnElement;
5163
5167
  let $btnCancel = btnCancelElement;
@@ -5173,7 +5177,7 @@ var pops = (function () {
5173
5177
  let elementList = [$anim];
5174
5178
  if (config.mask.enable) {
5175
5179
  let _handleMask_ = PopsHandler.handleMask({
5176
- type: PopsType,
5180
+ type: popsType,
5177
5181
  guid: guid,
5178
5182
  config: config,
5179
5183
  animElement: $anim,
@@ -5182,7 +5186,7 @@ var pops = (function () {
5182
5186
  $mask = _handleMask_.maskElement;
5183
5187
  elementList.push($mask);
5184
5188
  }
5185
- let eventDetails = PopsHandler.handleEventDetails(guid, $shadowContainer, $shadowRoot, PopsType, $anim, $pops, $mask, config);
5189
+ let eventDetails = PopsHandler.handleEventDetails(guid, $shadowContainer, $shadowRoot, popsType, $anim, $pops, $mask, config);
5186
5190
  /* 处理方向 */
5187
5191
  $pops.setAttribute("direction", config.direction);
5188
5192
  /* 处理border-radius */
@@ -5270,7 +5274,7 @@ var pops = (function () {
5270
5274
  if ($mask != null) {
5271
5275
  $anim.after($mask);
5272
5276
  }
5273
- PopsHandler.handlePush(PopsType, {
5277
+ PopsHandler.handlePush(popsType, {
5274
5278
  guid: guid,
5275
5279
  animElement: $anim,
5276
5280
  popsElement: $pops,
@@ -5461,11 +5465,11 @@ var pops = (function () {
5461
5465
  init(details) {
5462
5466
  const guid = popsUtils.getRandomGUID();
5463
5467
  // 设置当前类型
5464
- const PopsType = "folder";
5468
+ const popsType = "folder";
5465
5469
  let config = PopsFolderConfig();
5466
5470
  config = popsUtils.assign(config, GlobalConfig.getGlobalConfig());
5467
5471
  config = popsUtils.assign(config, details);
5468
- config = PopsHandler.handleOnly(PopsType, config);
5472
+ config = PopsHandler.handleOnly(popsType, config);
5469
5473
  const { $shadowContainer, $shadowRoot } = PopsHandler.handlerShadow(config);
5470
5474
  PopsHandler.handleInit($shadowRoot, [
5471
5475
  {
@@ -5545,19 +5549,15 @@ var pops = (function () {
5545
5549
  /* Android安装包 */
5546
5550
  let androidIconList = ["apk", "apkm", "xapk"];
5547
5551
  zipIconList.forEach((keyName) => {
5548
- // @ts-ignore
5549
5552
  Folder_ICON[keyName] = Folder_ICON.zip;
5550
5553
  });
5551
5554
  imageIconList.forEach((keyName) => {
5552
- // @ts-ignore
5553
5555
  Folder_ICON[keyName] = Folder_ICON.png;
5554
5556
  });
5555
5557
  codeLanguageIconList.forEach((keyName) => {
5556
- // @ts-ignore
5557
5558
  Folder_ICON[keyName] = Folder_ICON.html;
5558
5559
  });
5559
5560
  androidIconList.forEach((keyName) => {
5560
- // @ts-ignore
5561
5561
  Folder_ICON[keyName] = Folder_ICON.apk;
5562
5562
  });
5563
5563
  if (details?.folder) {
@@ -5567,108 +5567,105 @@ var pops = (function () {
5567
5567
  // 先把z-index提取出来
5568
5568
  let zIndex = PopsHandler.handleZIndex(config.zIndex);
5569
5569
  let maskHTML = PopsElementHandler.getMaskHTML(guid, zIndex);
5570
- let headerBtnHTML = PopsElementHandler.getHeaderBtnHTML(PopsType, config);
5571
- let bottomBtnHTML = PopsElementHandler.getBottomBtnHTML(PopsType, config);
5572
- let { headerStyle, headerPStyle } = PopsElementHandler.getHeaderStyle(PopsType, config);
5573
- let animHTML = PopsElementHandler.getAnimHTML(guid, PopsType, config,
5570
+ let headerBtnHTML = PopsElementHandler.getHeaderBtnHTML(popsType, config);
5571
+ let bottomBtnHTML = PopsElementHandler.getBottomBtnHTML(popsType, config);
5572
+ let { headerStyle, headerPStyle } = PopsElementHandler.getHeaderStyle(popsType, config);
5573
+ let animHTML = PopsElementHandler.getAnimHTML(guid, popsType, config,
5574
5574
  /*html*/ `
5575
- <div class="pops-title pops-${PopsType}-title" style="text-align: ${config.title.position};${headerStyle}">${config.title.html
5575
+ <div class="pops-title pops-${popsType}-title" style="text-align: ${config.title.position};${headerStyle}">${config.title.html
5576
5576
  ? config.title.text
5577
- : `<p pops class="pops-${PopsType}-title-text" style="${headerPStyle}">${config.title.text}</p>`}${headerBtnHTML}</div>
5578
- <div class="pops-content pops-${PopsType}-content ${popsUtils.isPhone() ? "pops-mobile-folder-content" : ""}">
5577
+ : `<p pops class="pops-${popsType}-title-text" style="${headerPStyle}">${config.title.text}</p>`}${headerBtnHTML}</div>
5578
+ <div class="pops-content pops-${popsType}-content ${popsUtils.isPhone() ? "pops-mobile-folder-content" : ""}">
5579
5579
  <div class="pops-folder-list">
5580
5580
  <div class="pops-folder-file-list-breadcrumb">
5581
- <div class="pops-folder-file-list-breadcrumb-primary">
5582
- <span class="pops-folder-file-list-breadcrumb-allFiles cursor-p" title="全部文件">
5583
- <a>全部文件</a>
5584
- </span>
5585
- </div>
5581
+ <div class="pops-folder-file-list-breadcrumb-primary">
5582
+ <span class="pops-folder-file-list-breadcrumb-allFiles cursor-p" title="全部文件">
5583
+ <a>全部文件</a>
5584
+ </span>
5585
+ </div>
5586
5586
  </div>
5587
5587
  <div class="pops-folder-list-table__header-div">
5588
- <table class="pops-folder-list-table__header">
5589
- <colgroup>
5590
- <col width="52%">
5591
- <col width="24%">
5592
- <col width="16%">
5593
- </colgroup>
5594
- <thead>
5595
- <tr class="pops-folder-list-table__header-row">
5596
- <th class="pops-folder-list-table__header-th cursor-p">
5597
- <div class="text-ellip content flex-a-i-center">
5598
- <span>文件名</span>
5599
- <div class="pops-folder-list-table__sort" data-sort="fileName">
5600
- <div class="pops-folder-icon-arrow" data-sort="按文件名排序">
5601
- <svg
5602
- viewBox="0 0 1024 1024"
5603
- xmlns="http://www.w3.org/2000/svg">
5604
- <path
5605
- d="M509.624392 5.882457 57.127707 458.379143 962.121078 458.379143Z"
5606
- class="pops-folder-icon-arrow-up"></path>
5607
- <path
5608
- d="M509.624392 1024 962.121078 571.503314 57.127707 571.503314Z"
5609
- class="pops-folder-icon-arrow-down"></path>
5610
- </svg>
5611
- </div>
5612
- </div>
5613
- </div>
5614
- </th>
5615
- <th class="pops-folder-list-table__header-th cursor-p">
5616
- <div class="text-ellip content flex-a-i-center">
5617
- <span>修改时间</span>
5618
- <div class="pops-folder-list-table__sort" data-sort="latestTime">
5619
- <div class="pops-folder-icon-arrow" title="按修改时间排序">
5620
- <svg
5621
- viewBox="0 0 1024 1024"
5622
- xmlns="http://www.w3.org/2000/svg">
5623
- <path
5624
- d="M509.624392 5.882457 57.127707 458.379143 962.121078 458.379143Z"
5625
- class="pops-folder-icon-arrow-up"></path>
5626
- <path
5627
- d="M509.624392 1024 962.121078 571.503314 57.127707 571.503314Z"
5628
- class="pops-folder-icon-arrow-down"></path>
5629
- </svg>
5630
- </div>
5631
- </div>
5632
- </div>
5633
- </th>
5634
- <th class="pops-folder-list-table__header-th cursor-p">
5635
- <div class="text-ellip content flex-a-i-center">
5636
- <span>大小</span>
5637
- <div class="pops-folder-list-table__sort" data-sort="fileSize">
5638
- <div class="pops-folder-icon-arrow" title="按大小排序">
5639
- <svg
5640
- viewBox="0 0 1024 1024"
5641
- xmlns="http://www.w3.org/2000/svg">
5642
- <path
5643
- d="M509.624392 5.882457 57.127707 458.379143 962.121078 458.379143Z"
5644
- class="pops-folder-icon-arrow-up"></path>
5645
- <path
5646
- d="M509.624392 1024 962.121078 571.503314 57.127707 571.503314Z"
5647
- class="pops-folder-icon-arrow-down"></path>
5648
- </svg>
5649
- </div>
5650
- </div>
5651
- </div>
5652
- </th>
5653
- </tr>
5654
- </thead>
5655
- </table>
5588
+ <table class="pops-folder-list-table__header">
5589
+ <colgroup>
5590
+ <col width="52%">
5591
+ <col width="24%">
5592
+ <col width="16%">
5593
+ </colgroup>
5594
+ <thead>
5595
+ <tr class="pops-folder-list-table__header-row">
5596
+ <th class="pops-folder-list-table__header-th cursor-p">
5597
+ <div class="text-ellip content flex-a-i-center">
5598
+ <span>文件名</span>
5599
+ <div class="pops-folder-list-table__sort" data-sort="fileName">
5600
+ <div class="pops-folder-icon-arrow" data-sort="按文件名排序">
5601
+ <svg
5602
+ viewBox="0 0 1024 1024"
5603
+ xmlns="http://www.w3.org/2000/svg">
5604
+ <path
5605
+ d="M509.624392 5.882457 57.127707 458.379143 962.121078 458.379143Z"
5606
+ class="pops-folder-icon-arrow-up"></path>
5607
+ <path
5608
+ d="M509.624392 1024 962.121078 571.503314 57.127707 571.503314Z"
5609
+ class="pops-folder-icon-arrow-down"></path>
5610
+ </svg>
5611
+ </div>
5612
+ </div>
5613
+ </div>
5614
+ </th>
5615
+ <th class="pops-folder-list-table__header-th cursor-p">
5616
+ <div class="text-ellip content flex-a-i-center">
5617
+ <span>修改时间</span>
5618
+ <div class="pops-folder-list-table__sort" data-sort="latestTime">
5619
+ <div class="pops-folder-icon-arrow" title="按修改时间排序">
5620
+ <svg
5621
+ viewBox="0 0 1024 1024"
5622
+ xmlns="http://www.w3.org/2000/svg">
5623
+ <path
5624
+ d="M509.624392 5.882457 57.127707 458.379143 962.121078 458.379143Z"
5625
+ class="pops-folder-icon-arrow-up"></path>
5626
+ <path
5627
+ d="M509.624392 1024 962.121078 571.503314 57.127707 571.503314Z"
5628
+ class="pops-folder-icon-arrow-down"></path>
5629
+ </svg>
5630
+ </div>
5631
+ </div>
5632
+ </div>
5633
+ </th>
5634
+ <th class="pops-folder-list-table__header-th cursor-p">
5635
+ <div class="text-ellip content flex-a-i-center">
5636
+ <span>大小</span>
5637
+ <div class="pops-folder-list-table__sort" data-sort="fileSize">
5638
+ <div class="pops-folder-icon-arrow" title="按大小排序">
5639
+ <svg
5640
+ viewBox="0 0 1024 1024"
5641
+ xmlns="http://www.w3.org/2000/svg">
5642
+ <path
5643
+ d="M509.624392 5.882457 57.127707 458.379143 962.121078 458.379143Z"
5644
+ class="pops-folder-icon-arrow-up"></path>
5645
+ <path
5646
+ d="M509.624392 1024 962.121078 571.503314 57.127707 571.503314Z"
5647
+ class="pops-folder-icon-arrow-down"></path>
5648
+ </svg>
5649
+ </div>
5650
+ </div>
5651
+ </div>
5652
+ </th>
5653
+ </tr>
5654
+ </thead>
5655
+ </table>
5656
5656
  </div>
5657
5657
  <div class="pops-folder-list-table__body-div">
5658
- <table class="pops-folder-list-table__body">
5659
- <colgroup>
5660
- ${popsUtils.isPhone()
5658
+ <table class="pops-folder-list-table__body">
5659
+ <colgroup>
5660
+ ${popsUtils.isPhone()
5661
5661
  ? `<col width="100%">`
5662
5662
  : `
5663
- <col width="52%">
5664
- <col width="24%">
5665
- <col width="16%">`}
5666
-
5667
- </colgroup>
5668
- <tbody>
5669
-
5670
- </tbody>
5671
- </table>
5663
+ <col width="52%">
5664
+ <col width="24%">
5665
+ <col width="16%">`}
5666
+ </colgroup>
5667
+ <tbody></tbody>
5668
+ </table>
5672
5669
  </div>
5673
5670
  </div>
5674
5671
  </div>${bottomBtnHTML}`, bottomBtnHTML, zIndex);
@@ -5680,7 +5677,7 @@ var pops = (function () {
5680
5677
  // folderListElement,
5681
5678
  // folderListHeaderElement,
5682
5679
  // folderListHeaderRowElement,
5683
- folderListBodyElement, folderFileListBreadcrumbPrimaryElement, headerCloseBtnElement: $btnCloseBtn, btnOkElement, btnCancelElement, btnOtherElement, folderListSortFileNameElement, folderListSortLatestTimeElement, folderListSortFileSizeElement, } = PopsHandler.handleQueryElement($anim, PopsType);
5680
+ folderListBodyElement, folderFileListBreadcrumbPrimaryElement, headerCloseBtnElement: $btnCloseBtn, btnOkElement, btnCancelElement, btnOtherElement, folderListSortFileNameElement, folderListSortLatestTimeElement, folderListSortFileSizeElement, } = PopsHandler.handleQueryElement($anim, popsType);
5684
5681
  /**
5685
5682
  * 遮罩层元素
5686
5683
  */
@@ -5691,7 +5688,7 @@ var pops = (function () {
5691
5688
  let elementList = [$anim];
5692
5689
  if (config.mask.enable) {
5693
5690
  let _handleMask_ = PopsHandler.handleMask({
5694
- type: PopsType,
5691
+ type: popsType,
5695
5692
  guid: guid,
5696
5693
  config: config,
5697
5694
  animElement: $anim,
@@ -5701,7 +5698,7 @@ var pops = (function () {
5701
5698
  elementList.push($mask);
5702
5699
  }
5703
5700
  /* 事件 */
5704
- let eventDetails = PopsHandler.handleEventDetails(guid, $shadowContainer, $shadowRoot, PopsType, $anim, $pops, $mask, config);
5701
+ let eventDetails = PopsHandler.handleEventDetails(guid, $shadowContainer, $shadowRoot, popsType, $anim, $pops, $mask, config);
5705
5702
  PopsHandler.handleClickEvent("close", $btnCloseBtn, eventDetails, config.btn.close.callback);
5706
5703
  PopsHandler.handleClickEvent("ok", btnOkElement, eventDetails, config.btn.ok.callback);
5707
5704
  PopsHandler.handleClickEvent("cancel", btnCancelElement, eventDetails, config.btn.cancel.callback);
@@ -5794,10 +5791,10 @@ var pops = (function () {
5794
5791
  fileSize: origin_fileSize,
5795
5792
  isFolder: isFolder,
5796
5793
  };
5797
- fileNameElement["__value__"] = __value__;
5798
- fileTimeElement["__value__"] = __value__;
5799
- fileFormatSize["__value__"] = __value__;
5800
- folderELement["__value__"] = __value__;
5794
+ Reflect.set(fileNameElement, "__value__", __value__);
5795
+ Reflect.set(fileTimeElement, "__value__", __value__);
5796
+ Reflect.set(fileFormatSize, "__value__", __value__);
5797
+ Reflect.set(folderELement, "__value__", __value__);
5801
5798
  folderELement.appendChild(fileNameElement);
5802
5799
  folderELement.appendChild(fileTimeElement);
5803
5800
  folderELement.appendChild(fileFormatSize);
@@ -5864,8 +5861,8 @@ var pops = (function () {
5864
5861
  fileSize: origin_fileSize,
5865
5862
  isFolder: isFolder,
5866
5863
  };
5867
- fileNameElement["__value__"] = __value__;
5868
- folderELement["__value__"] = __value__;
5864
+ Reflect.set(fileNameElement, "__value__", __value__);
5865
+ Reflect.set(folderELement, "__value__", __value__);
5869
5866
  folderELement.appendChild(fileNameElement);
5870
5867
  return {
5871
5868
  folderELement,
@@ -5875,10 +5872,13 @@ var pops = (function () {
5875
5872
  /**
5876
5873
  * 清空每行的元素
5877
5874
  */
5878
- function clearFolerRow() {
5875
+ function clearFolderRow() {
5879
5876
  PopsSafeUtils.setSafeHTML(folderListBodyElement, "");
5880
5877
  }
5881
- function getArrowIconElement() {
5878
+ /**
5879
+ * 创建顶部导航的箭头图标
5880
+ */
5881
+ function createHeaderArrowIcon() {
5882
5882
  let iconArrowElement = popsDOMUtils.createElement("div", {
5883
5883
  className: "iconArrow",
5884
5884
  });
@@ -5886,17 +5886,16 @@ var pops = (function () {
5886
5886
  }
5887
5887
  /**
5888
5888
  * 添加顶部导航
5889
- * @param name
5890
- * @param _config_
5891
- * @returns
5889
+ * @param folderName 文件夹名
5890
+ * @param folderDataConfig 文件夹配置
5892
5891
  */
5893
- function getBreadcrumbAllFilesElement(name, _config_) {
5892
+ function createHeaderFileLinkNavgiation(folderName, folderDataConfig) {
5894
5893
  let spanElement = popsDOMUtils.createElement("span", {
5895
5894
  className: "pops-folder-file-list-breadcrumb-allFiles cursor-p",
5896
- innerHTML: `<a>${name}</a>`,
5897
- _config_: _config_,
5895
+ innerHTML: `<a>${folderName}</a>`,
5896
+ _config_: folderDataConfig,
5898
5897
  }, {
5899
- title: "name",
5898
+ title: folderName,
5900
5899
  });
5901
5900
  return spanElement;
5902
5901
  }
@@ -5904,10 +5903,10 @@ var pops = (function () {
5904
5903
  * 顶部导航的点击事件
5905
5904
  * @param event
5906
5905
  * @param isTop 是否是全部文件按钮
5907
- * @param _config_ 配置
5906
+ * @param folderDataConfigList 配置
5908
5907
  */
5909
- function breadcrumbAllFilesElementClickEvent(event, isTop, _config_) {
5910
- clearFolerRow();
5908
+ function breadcrumbAllFilesElementClickEvent(event, isTop, folderDataConfigList) {
5909
+ clearFolderRow();
5911
5910
  /* 获取当前的导航元素 */
5912
5911
  let $click = event.target;
5913
5912
  let currentBreadcrumb = $click.closest("span.pops-folder-file-list-breadcrumb-allFiles");
@@ -5933,16 +5932,16 @@ var pops = (function () {
5933
5932
  },
5934
5933
  addIndexCSS: false,
5935
5934
  });
5936
- addFolderElement(_config_);
5935
+ addFolderElement(folderDataConfigList);
5937
5936
  loadingMask.close();
5938
5937
  }
5939
5938
  /**
5940
5939
  * 刷新文件列表界面信息
5941
5940
  * @param event
5942
- * @param _config_
5941
+ * @param folderDataConfig
5943
5942
  */
5944
- async function refreshFolderInfoClickEvent(event, _config_) {
5945
- clearFolerRow();
5943
+ async function refreshFolderInfoClickEvent(event, folderDataConfig) {
5944
+ clearFolderRow();
5946
5945
  let loadingMask = PopsLoading.init({
5947
5946
  parent: $content,
5948
5947
  content: {
@@ -5953,12 +5952,12 @@ var pops = (function () {
5953
5952
  },
5954
5953
  addIndexCSS: false,
5955
5954
  });
5956
- if (typeof _config_.clickEvent === "function") {
5957
- let childConfig = await _config_.clickEvent(event, _config_);
5955
+ if (typeof folderDataConfig.clickEvent === "function") {
5956
+ let childConfig = await folderDataConfig.clickEvent(event, folderDataConfig);
5958
5957
  /* 添加顶部导航的箭头 */
5959
- folderFileListBreadcrumbPrimaryElement.appendChild(getArrowIconElement());
5960
- /* 获取顶部导航 */
5961
- let breadcrumbAllFilesElement = getBreadcrumbAllFilesElement(_config_["fileName"], childConfig);
5958
+ folderFileListBreadcrumbPrimaryElement.appendChild(createHeaderArrowIcon());
5959
+ /* 添加顶部导航的链接文字 */
5960
+ let breadcrumbAllFilesElement = createHeaderFileLinkNavgiation(folderDataConfig.fileName, childConfig);
5962
5961
  folderFileListBreadcrumbPrimaryElement.appendChild(breadcrumbAllFilesElement);
5963
5962
  /* 设置顶部导航点击事件 */
5964
5963
  popsDOMUtils.on(breadcrumbAllFilesElement, "click", function (event) {
@@ -6253,7 +6252,7 @@ var pops = (function () {
6253
6252
  endCallBack: config.dragEndCallBack,
6254
6253
  });
6255
6254
  }
6256
- PopsHandler.handlePush(PopsType, {
6255
+ PopsHandler.handlePush(popsType, {
6257
6256
  guid: guid,
6258
6257
  animElement: $anim,
6259
6258
  popsElement: $pops,
@@ -7345,14 +7344,14 @@ var pops = (function () {
7345
7344
  init(details) {
7346
7345
  const guid = popsUtils.getRandomGUID();
7347
7346
  // 设置当前类型
7348
- const PopsType = "tooltip";
7347
+ const popsType = "tooltip";
7349
7348
  let config = PopsTooltipConfig();
7350
7349
  config = popsUtils.assign(config, GlobalConfig.getGlobalConfig());
7351
7350
  config = popsUtils.assign(config, details);
7352
7351
  if (!(config.target instanceof HTMLElement)) {
7353
7352
  throw new TypeError("config.target 必须是HTMLElement类型");
7354
7353
  }
7355
- config = PopsHandler.handleOnly(PopsType, config);
7354
+ config = PopsHandler.handleOnly(popsType, config);
7356
7355
  const { $shadowContainer, $shadowRoot } = PopsHandler.handlerShadow(config);
7357
7356
  PopsHandler.handleInit($shadowRoot, [
7358
7357
  {
@@ -7659,7 +7658,10 @@ var pops = (function () {
7659
7658
  },
7660
7659
  init() {
7661
7660
  this.setStatus(this.$data.value);
7662
- if (formConfig.disabled) {
7661
+ let disabled = typeof formConfig.disabled === "function"
7662
+ ? formConfig.disabled()
7663
+ : formConfig.disabled;
7664
+ if (disabled) {
7663
7665
  this.disable();
7664
7666
  }
7665
7667
  this.setClickEvent();
@@ -8396,7 +8398,7 @@ var pops = (function () {
8396
8398
  <div class="pops-panel-item-left-text">
8397
8399
  <p class="pops-panel-item-left-main-text">${formConfig.text}</p>${leftDescriptionText}</div>
8398
8400
  <div class="pops-panel-input pops-user-select-none">
8399
- <input type="${inputType}" placeholder="${formConfig.placeholder}">
8401
+ <input type="${inputType}" placeholder="${formConfig.placeholder ?? ""}">
8400
8402
  </div>
8401
8403
  `);
8402
8404
  const PopsPanelInput = {
@@ -8428,7 +8430,11 @@ var pops = (function () {
8428
8430
  }
8429
8431
  }
8430
8432
  this.setInputChangeEvent();
8431
- if (formConfig.disabled) {
8433
+ // 是否禁用复选框
8434
+ let disabled = typeof formConfig.disabled === "function"
8435
+ ? formConfig.disabled()
8436
+ : formConfig.disabled;
8437
+ if (disabled) {
8432
8438
  this.disable();
8433
8439
  }
8434
8440
  if (typeof formConfig.handlerCallBack === "function") {
@@ -8606,7 +8612,10 @@ var pops = (function () {
8606
8612
  init() {
8607
8613
  this.setValue(this.$data.value);
8608
8614
  this.setChangeEvent();
8609
- if (formConfig.disabled) {
8615
+ let disabled = typeof formConfig.disabled === "function"
8616
+ ? formConfig.disabled()
8617
+ : formConfig.disabled;
8618
+ if (disabled) {
8610
8619
  this.disable();
8611
8620
  }
8612
8621
  },
@@ -8685,7 +8694,10 @@ var pops = (function () {
8685
8694
  this.initOption();
8686
8695
  this.setChangeEvent();
8687
8696
  this.setClickEvent();
8688
- if (formConfig.disabled) {
8697
+ let disabled = typeof formConfig.disabled === "function"
8698
+ ? formConfig.disabled()
8699
+ : formConfig.disabled;
8700
+ if (disabled) {
8689
8701
  this.disable();
8690
8702
  }
8691
8703
  },
@@ -10084,14 +10096,14 @@ var pops = (function () {
10084
10096
  init(details) {
10085
10097
  const guid = popsUtils.getRandomGUID();
10086
10098
  // 设置当前类型
10087
- const PopsType = "panel";
10099
+ const popsType = "panel";
10088
10100
  let config = PopsPanelConfig();
10089
10101
  config = popsUtils.assign(config, GlobalConfig.getGlobalConfig());
10090
10102
  config = popsUtils.assign(config, details);
10091
10103
  if (details && Array.isArray(details.content)) {
10092
10104
  config.content = details.content;
10093
10105
  }
10094
- config = PopsHandler.handleOnly(PopsType, config);
10106
+ config = PopsHandler.handleOnly(popsType, config);
10095
10107
  const { $shadowContainer, $shadowRoot } = PopsHandler.handlerShadow(config);
10096
10108
  PopsHandler.handleInit($shadowRoot, [
10097
10109
  {
@@ -10126,21 +10138,21 @@ var pops = (function () {
10126
10138
  // 先把z-index提取出来
10127
10139
  let zIndex = PopsHandler.handleZIndex(config.zIndex);
10128
10140
  let maskHTML = PopsElementHandler.getMaskHTML(guid, zIndex);
10129
- let headerBtnHTML = PopsElementHandler.getHeaderBtnHTML(PopsType, config);
10130
- let { headerStyle, headerPStyle } = PopsElementHandler.getHeaderStyle(PopsType, config);
10131
- let animHTML = PopsElementHandler.getAnimHTML(guid, PopsType, config,
10141
+ let headerBtnHTML = PopsElementHandler.getHeaderBtnHTML(popsType, config);
10142
+ let { headerStyle, headerPStyle } = PopsElementHandler.getHeaderStyle(popsType, config);
10143
+ let animHTML = PopsElementHandler.getAnimHTML(guid, popsType, config,
10132
10144
  /*html*/ `
10133
- <div class="pops-title pops-${PopsType}-title" style="text-align: ${config.title.position};${headerStyle}">${config.title.html
10145
+ <div class="pops-title pops-${popsType}-title" style="text-align: ${config.title.position};${headerStyle}">${config.title.html
10134
10146
  ? config.title.text
10135
- : `<p pops class="pops-${PopsType}-title-text" class="pops-${PopsType}-title-text" style="${headerPStyle}">${config.title.text}</p>`}${headerBtnHTML}</div>
10136
- <div class="pops-content pops-${PopsType}-content">
10137
- <aside class="pops-${PopsType}-aside">
10138
- <ul class="pops-${PopsType}-aside-top-container"></ul>
10139
- <ul class="pops-${PopsType}-aside-bottom-container"></ul>
10147
+ : `<p pops class="pops-${popsType}-title-text" class="pops-${popsType}-title-text" style="${headerPStyle}">${config.title.text}</p>`}${headerBtnHTML}</div>
10148
+ <div class="pops-content pops-${popsType}-content">
10149
+ <aside class="pops-${popsType}-aside">
10150
+ <ul class="pops-${popsType}-aside-top-container"></ul>
10151
+ <ul class="pops-${popsType}-aside-bottom-container"></ul>
10140
10152
  </aside>
10141
- <section class="pops-${PopsType}-container">
10142
- <ul class="pops-${PopsType}-container-header-ul"></ul>
10143
- <ul class="pops-${PopsType}-container-main-ul"></ul>
10153
+ <section class="pops-${popsType}-container">
10154
+ <ul class="pops-${popsType}-container-header-ul"></ul>
10155
+ <ul class="pops-${popsType}-container-main-ul"></ul>
10144
10156
  </section>
10145
10157
  </div>`, "", zIndex);
10146
10158
  /**
@@ -10148,7 +10160,7 @@ var pops = (function () {
10148
10160
  */
10149
10161
  let $anim = PopsElementHandler.parseElement(animHTML);
10150
10162
  /* 结构元素 */
10151
- let { popsElement: $pops, headerCloseBtnElement: $headerCloseBtn, titleElement: $title, contentElement: $content, contentAsideElement: $contentAside, contentSectionContainerElement: $contentSectionContainer, } = PopsHandler.handleQueryElement($anim, PopsType);
10163
+ let { popsElement: $pops, headerCloseBtnElement: $headerCloseBtn, titleElement: $title, contentElement: $content, contentAsideElement: $contentAside, contentSectionContainerElement: $contentSectionContainer, } = PopsHandler.handleQueryElement($anim, popsType);
10152
10164
  if (config.isMobile || popsUtils.isPhone()) {
10153
10165
  popsDOMUtils.addClassName($pops, config.mobileClassName);
10154
10166
  }
@@ -10163,7 +10175,7 @@ var pops = (function () {
10163
10175
  /* 遮罩层元素 */
10164
10176
  if (config.mask.enable) {
10165
10177
  let { maskElement } = PopsHandler.handleMask({
10166
- type: PopsType,
10178
+ type: popsType,
10167
10179
  guid: guid,
10168
10180
  config: config,
10169
10181
  animElement: $anim,
@@ -10173,7 +10185,7 @@ var pops = (function () {
10173
10185
  isCreatedElementList.push($mask);
10174
10186
  }
10175
10187
  /* 处理返回的配置 */
10176
- let eventDetails = PopsHandler.handleEventDetails(guid, $shadowContainer, $shadowRoot, PopsType, $anim, $pops, $mask, config);
10188
+ let eventDetails = PopsHandler.handleEventDetails(guid, $shadowContainer, $shadowRoot, popsType, $anim, $pops, $mask, config);
10177
10189
  /* 为顶部右边的关闭按钮添加点击事件 */
10178
10190
  PopsHandler.handleClickEvent("close", $headerCloseBtn, eventDetails, config.btn.close.callback);
10179
10191
  /* 创建到页面中 */
@@ -10199,7 +10211,7 @@ var pops = (function () {
10199
10211
  $contentSectionContainer: $contentSectionContainer,
10200
10212
  },
10201
10213
  });
10202
- PopsHandler.handlePush(PopsType, {
10214
+ PopsHandler.handlePush(popsType, {
10203
10215
  guid: guid,
10204
10216
  animElement: $anim,
10205
10217
  popsElement: $pops,
@@ -10361,11 +10373,11 @@ var pops = (function () {
10361
10373
  init(details) {
10362
10374
  const guid = popsUtils.getRandomGUID();
10363
10375
  // 设置当前类型
10364
- const PopsType = "rightClickMenu";
10376
+ const popsType = "rightClickMenu";
10365
10377
  let config = rightClickMenuConfig();
10366
10378
  config = popsUtils.assign(config, GlobalConfig.getGlobalConfig());
10367
10379
  config = popsUtils.assign(config, details);
10368
- config = PopsHandler.handleOnly(PopsType, config);
10380
+ config = PopsHandler.handleOnly(popsType, config);
10369
10381
  if (config.target == null) {
10370
10382
  throw new Error("config.target 不能为空");
10371
10383
  }
@@ -10414,7 +10426,7 @@ var pops = (function () {
10414
10426
  return;
10415
10427
  }
10416
10428
  let $click = event.target;
10417
- if ($click.closest(`.pops-${PopsType}`)) {
10429
+ if ($click.closest(`.pops-${popsType}`)) {
10418
10430
  return;
10419
10431
  }
10420
10432
  if ($click.className &&
@@ -10433,7 +10445,7 @@ var pops = (function () {
10433
10445
  return;
10434
10446
  }
10435
10447
  let $click = event.target;
10436
- if ($click.closest(`.pops-${PopsType}`)) {
10448
+ if ($click.closest(`.pops-${popsType}`)) {
10437
10449
  return;
10438
10450
  }
10439
10451
  PopsContextMenu.closeAllMenu(PopsContextMenu.rootElement);
@@ -10479,14 +10491,14 @@ var pops = (function () {
10479
10491
  if (config.preventDefault) {
10480
10492
  popsDOMUtils.preventEvent(event);
10481
10493
  }
10482
- PopsHandler.handleOnly(PopsType, config);
10494
+ PopsHandler.handleOnly(popsType, config);
10483
10495
  if (PopsContextMenu.rootElement) {
10484
10496
  PopsContextMenu.closeAllMenu(PopsContextMenu.rootElement);
10485
10497
  }
10486
10498
  let rootElement = PopsContextMenu.showMenu(event, config.data, selectorTarget);
10487
10499
  PopsContextMenu.rootElement = rootElement;
10488
10500
  if (config.only) {
10489
- PopsHandler.handlePush(PopsType, {
10501
+ PopsHandler.handlePush(popsType, {
10490
10502
  $shadowRoot: $shadowRoot,
10491
10503
  $shadowContainer: $shadowContainer,
10492
10504
  guid: guid,
@@ -10528,12 +10540,12 @@ var pops = (function () {
10528
10540
  });
10529
10541
  element.remove();
10530
10542
  }
10531
- if (element.classList.contains(`pops-${PopsType}-anim-show`)) {
10543
+ if (element.classList.contains(`pops-${popsType}-anim-show`)) {
10532
10544
  /* 有动画 */
10533
10545
  popsDOMUtils.on(element, popsDOMUtils.getTransitionEndNameList(), transitionEndEvent, {
10534
10546
  capture: true,
10535
10547
  });
10536
- element.classList.remove(`pops-${PopsType}-anim-show`);
10548
+ element.classList.remove(`pops-${popsType}-anim-show`);
10537
10549
  }
10538
10550
  else {
10539
10551
  /* 无动画 */
@@ -10565,7 +10577,7 @@ var pops = (function () {
10565
10577
  */
10566
10578
  getMenuContainerElement(isChildren) {
10567
10579
  let $menu = popsDOMUtils.createElement("div", {
10568
- className: `pops-${PopsType}`,
10580
+ className: `pops-${popsType}`,
10569
10581
  innerHTML: /*html*/ `
10570
10582
  <ul></ul>
10571
10583
  `,
@@ -10579,7 +10591,7 @@ var pops = (function () {
10579
10591
  }
10580
10592
  /* 添加动画 */
10581
10593
  if (config.isAnimation) {
10582
- popsDOMUtils.addClassName($menu, `pops-${PopsType}-anim-grid`);
10594
+ popsDOMUtils.addClassName($menu, `pops-${popsType}-anim-grid`);
10583
10595
  }
10584
10596
  return $menu;
10585
10597
  },
@@ -10719,7 +10731,7 @@ var pops = (function () {
10719
10731
  });
10720
10732
  /* 过渡动画 */
10721
10733
  if (config.isAnimation) {
10722
- popsDOMUtils.addClassName(menuElement, `pops-${PopsType}-anim-show`);
10734
+ popsDOMUtils.addClassName(menuElement, `pops-${popsType}-anim-show`);
10723
10735
  }
10724
10736
  return menuElement;
10725
10737
  },
@@ -10759,7 +10771,7 @@ var pops = (function () {
10759
10771
  popsDOMUtils.css(menuElement, { ...offset, display: "" });
10760
10772
  /* 过渡动画 */
10761
10773
  if (config.isAnimation) {
10762
- popsDOMUtils.addClassName(menuElement, `pops-${PopsType}-anim-show`);
10774
+ popsDOMUtils.addClassName(menuElement, `pops-${popsType}-anim-show`);
10763
10775
  }
10764
10776
  return menuElement;
10765
10777
  },
@@ -10780,19 +10792,19 @@ var pops = (function () {
10780
10792
  if (typeof item.icon === "string" && item.icon.trim() !== "") {
10781
10793
  let iconSVGHTML = PopsIcon.getIcon(item.icon) ?? item.icon;
10782
10794
  let iconElement = popsDOMUtils.parseTextToDOM(
10783
- /*html*/ `<i class="pops-${PopsType}-icon" is-loading="${item.iconIsLoading ?? false}">${iconSVGHTML}</i>`);
10795
+ /*html*/ `<i class="pops-${popsType}-icon" is-loading="${item.iconIsLoading ?? false}">${iconSVGHTML}</i>`);
10784
10796
  menuLiElement.appendChild(iconElement);
10785
10797
  }
10786
10798
  /* 插入文字 */
10787
10799
  menuLiElement.insertAdjacentHTML("beforeend", PopsSafeUtils.getSafeHTML(`<span>${item.text}</span>`));
10788
10800
  /* 如果存在子数据,显示 */
10789
10801
  if (item.item && Array.isArray(item.item)) {
10790
- popsDOMUtils.addClassName(menuLiElement, `pops-${PopsType}-item`);
10802
+ popsDOMUtils.addClassName(menuLiElement, `pops-${popsType}-item`);
10791
10803
  }
10792
10804
  /* 鼠标|触摸 移入事件 */
10793
10805
  function liElementHoverEvent() {
10794
10806
  Array.from(menuULElement.children).forEach((liElement) => {
10795
- popsDOMUtils.removeClassName(liElement, `pops-${PopsType}-is-visited`);
10807
+ popsDOMUtils.removeClassName(liElement, `pops-${popsType}-is-visited`);
10796
10808
  if (!liElement.__menuData__) {
10797
10809
  return;
10798
10810
  }
@@ -10817,7 +10829,7 @@ var pops = (function () {
10817
10829
  index--;
10818
10830
  }
10819
10831
  }
10820
- popsDOMUtils.addClassName(menuLiElement, `pops-${PopsType}-is-visited`);
10832
+ popsDOMUtils.addClassName(menuLiElement, `pops-${popsType}-is-visited`);
10821
10833
  if (!item.item) {
10822
10834
  return;
10823
10835
  }
@@ -10940,7 +10952,7 @@ var pops = (function () {
10940
10952
  init(details) {
10941
10953
  const guid = popsUtils.getRandomGUID();
10942
10954
  // 设置当前类型
10943
- const PopsType = "searchSuggestion";
10955
+ const popsType = "searchSuggestion";
10944
10956
  let config = searchSuggestionConfig();
10945
10957
  config = popsUtils.assign(config, GlobalConfig.getGlobalConfig());
10946
10958
  config = popsUtils.assign(config, details);
@@ -11006,7 +11018,7 @@ var pops = (function () {
11006
11018
  SearchSuggestion.changeHintULElementPosition();
11007
11019
  SearchSuggestion.hide();
11008
11020
  if (config.isAnimation) {
11009
- SearchSuggestion.$el.root.classList.add(`pops-${PopsType}-animation`);
11021
+ SearchSuggestion.$el.root.classList.add(`pops-${popsType}-animation`);
11010
11022
  }
11011
11023
  $shadowRoot.appendChild(SearchSuggestion.$el.root);
11012
11024
  parentElement.appendChild($shadowContainer);
@@ -11023,16 +11035,16 @@ var pops = (function () {
11023
11035
  */
11024
11036
  getSearchSelectElement() {
11025
11037
  let element = popsDOMUtils.createElement("div", {
11026
- className: `pops pops-${PopsType}-search-suggestion`,
11038
+ className: `pops pops-${popsType}-search-suggestion`,
11027
11039
  innerHTML: /*html*/ `
11028
11040
  <style data-dynamic="true">
11029
11041
  ${this.getDynamicCSS()}
11030
11042
  </style>
11031
- <ul class="pops-${PopsType}-search-suggestion-hint">${config.toSearhNotResultHTML}</ul>
11043
+ <ul class="pops-${popsType}-search-suggestion-hint">${config.toSearhNotResultHTML}</ul>
11032
11044
  `,
11033
11045
  }, {
11034
11046
  "data-guid": guid,
11035
- "type-value": PopsType,
11047
+ "type-value": popsType,
11036
11048
  });
11037
11049
  if (config.className !== "" && config.className != null) {
11038
11050
  popsDOMUtils.addClassName(element, config.className);
@@ -11042,24 +11054,24 @@ var pops = (function () {
11042
11054
  /** 动态获取CSS */
11043
11055
  getDynamicCSS() {
11044
11056
  return /*css*/ `
11045
- .pops-${PopsType}-animation{
11057
+ .pops-${popsType}-animation{
11046
11058
  -moz-animation: searchSelectFalIn 0.5s 1 linear;
11047
11059
  -webkit-animation: searchSelectFalIn 0.5s 1 linear;
11048
11060
  -o-animation: searchSelectFalIn 0.5s 1 linear;
11049
11061
  -ms-animation: searchSelectFalIn 0.5s 1 linear;
11050
11062
  }
11051
- .pops-${PopsType}-search-suggestion{
11063
+ .pops-${popsType}-search-suggestion{
11052
11064
  --search-suggestion-bg-color: #ffffff;
11053
11065
  --search-suggestion-box-shadow-color: rgb(0 0 0 / 20%);
11054
11066
  --search-suggestion-item-color: #515a6e;
11055
11067
  --search-suggestion-item-none-color: #8e8e8e;
11056
11068
  --search-suggestion-item-hover-bg-color: rgba(0, 0, 0, .1);
11057
11069
  }
11058
- .pops-${PopsType}-search-suggestion{
11070
+ .pops-${popsType}-search-suggestion{
11059
11071
  border: initial;
11060
11072
  overflow: initial;
11061
11073
  }
11062
- ul.pops-${PopsType}-search-suggestion-hint{
11074
+ ul.pops-${popsType}-search-suggestion-hint{
11063
11075
  position: ${config.isAbsolute ? "absolute" : "fixed"};
11064
11076
  z-index: ${PopsHandler.handleZIndex(config.zIndex)};
11065
11077
  width: 0;
@@ -11074,14 +11086,14 @@ var pops = (function () {
11074
11086
  box-shadow: 0 1px 6px var(--search-suggestion-box-shadow-color);
11075
11087
  }
11076
11088
  /* 建议框在上面时 */
11077
- ul.pops-${PopsType}-search-suggestion-hint[data-top-reverse]{
11089
+ ul.pops-${popsType}-search-suggestion-hint[data-top-reverse]{
11078
11090
  display: flex;
11079
11091
  flex-direction: column-reverse;
11080
11092
  }
11081
- ul.pops-${PopsType}-search-suggestion-hint[data-top-reverse] li{
11093
+ ul.pops-${popsType}-search-suggestion-hint[data-top-reverse] li{
11082
11094
  flex-shrink: 0;
11083
11095
  }
11084
- ul.pops-${PopsType}-search-suggestion-hint li{
11096
+ ul.pops-${popsType}-search-suggestion-hint li{
11085
11097
  padding: 7px;
11086
11098
  margin: 0;
11087
11099
  clear: both;
@@ -11094,17 +11106,17 @@ var pops = (function () {
11094
11106
  text-overflow: ellipsis;
11095
11107
  width: 100%;
11096
11108
  }
11097
- ul.pops-${PopsType}-search-suggestion-hint li[data-none]{
11109
+ ul.pops-${popsType}-search-suggestion-hint li[data-none]{
11098
11110
  text-align: center;
11099
11111
  font-size: 12px;
11100
11112
  color: var(--search-suggestion-item-none-color);
11101
11113
  }
11102
- ul.pops-${PopsType}-search-suggestion-hint li:hover{
11114
+ ul.pops-${popsType}-search-suggestion-hint li:hover{
11103
11115
  background-color: var(--search-suggestion-item-hover-bg-color);
11104
11116
  }
11105
11117
 
11106
11118
  @media (prefers-color-scheme: dark){
11107
- .pops-${PopsType}-search-suggestion{
11119
+ .pops-${popsType}-search-suggestion{
11108
11120
  --search-suggestion-bg-color: #1d1e1f;
11109
11121
  --search-suggestion-item-color: #cfd3d4;
11110
11122
  --search-suggestion-item-hover-bg-color: rgba(175, 175, 175, .1);
@@ -11119,7 +11131,7 @@ var pops = (function () {
11119
11131
  */
11120
11132
  getSearchItemLiElement(data, index) {
11121
11133
  return popsDOMUtils.createElement("li", {
11122
- className: `pops-${PopsType}-search-suggestion-hint-item pops-flex-items-center pops-flex-y-center`,
11134
+ className: `pops-${popsType}-search-suggestion-hint-item pops-flex-items-center pops-flex-y-center`,
11123
11135
  "data-index": index,
11124
11136
  "data-value": SearchSuggestion.getItemDataValue(data),
11125
11137
  innerHTML: `${config.getItemHTML(data)}${config.deleteIcon.enable ? SearchSuggestion.getDeleteIconHTML() : ""}`,
@@ -11140,7 +11152,7 @@ var pops = (function () {
11140
11152
  popsDOMUtils.on(liElement, "click", void 0, (event) => {
11141
11153
  popsDOMUtils.preventEvent(event);
11142
11154
  let $click = event.target;
11143
- if ($click.closest(`.pops-${PopsType}-delete-icon`)) {
11155
+ if ($click.closest(`.pops-${popsType}-delete-icon`)) {
11144
11156
  /* 点击的是删除按钮 */
11145
11157
  if (typeof config.deleteIcon.callback === "function") {
11146
11158
  config.deleteIcon.callback(event, liElement, liElement["data-value"]);
@@ -11332,7 +11344,7 @@ var pops = (function () {
11332
11344
  */
11333
11345
  getDeleteIconHTML(size = 16, fill = "#bababa") {
11334
11346
  return /*html*/ `
11335
- <svg class="pops-${PopsType}-delete-icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" width="${size}" height="${size}" fill="${fill}">
11347
+ <svg class="pops-${popsType}-delete-icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" width="${size}" height="${size}" fill="${fill}">
11336
11348
  <path d="M512 883.2A371.2 371.2 0 1 0 140.8 512 371.2 371.2 0 0 0 512 883.2z m0 64a435.2 435.2 0 1 1 435.2-435.2 435.2 435.2 0 0 1-435.2 435.2z"></path>
11337
11349
  <path d="M557.056 512l122.368 122.368a31.744 31.744 0 1 1-45.056 45.056L512 557.056l-122.368 122.368a31.744 31.744 0 1 1-45.056-45.056L466.944 512 344.576 389.632a31.744 31.744 0 1 1 45.056-45.056L512 466.944l122.368-122.368a31.744 31.744 0 1 1 45.056 45.056z"></path>
11338
11350
  </svg>
@@ -11343,7 +11355,7 @@ var pops = (function () {
11343
11355
  */
11344
11356
  setPromptsInSearch() {
11345
11357
  let isSearchingElement = popsDOMUtils.createElement("li", {
11346
- className: `pops-${PopsType}-search-suggestion-hint-searching-item`,
11358
+ className: `pops-${popsType}-search-suggestion-hint-searching-item`,
11347
11359
  innerHTML: config.searchingTip,
11348
11360
  });
11349
11361
  SearchSuggestion.$el.$hintULContainer.appendChild(isSearchingElement);
@@ -11353,7 +11365,7 @@ var pops = (function () {
11353
11365
  */
11354
11366
  removePromptsInSearch() {
11355
11367
  SearchSuggestion.$el.$hintULContainer
11356
- .querySelector(`li.pops-${PopsType}-search-suggestion-hint-searching-item`)
11368
+ .querySelector(`li.pops-${popsType}-search-suggestion-hint-searching-item`)
11357
11369
  ?.remove();
11358
11370
  },
11359
11371
  /**
@@ -11506,7 +11518,7 @@ var pops = (function () {
11506
11518
  /** 配置 */
11507
11519
  config = {
11508
11520
  /** 版本号 */
11509
- version: "2025.7.13",
11521
+ version: "2025.7.15",
11510
11522
  cssText: PopsCSS,
11511
11523
  /** icon图标的svg代码 */
11512
11524
  iconSVG: PopsIcon.$data,