@whitesev/pops 2.1.11 → 2.1.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,6 @@
1
1
  {
2
- "$schema": "https://json.schemastore.org/package.json",
3
2
  "name": "@whitesev/pops",
4
- "version": "2.1.11",
3
+ "version": "2.1.13",
5
4
  "type": "module",
6
5
  "description": "弹窗库",
7
6
  "main": "dist/index.cjs.js",
@@ -37,13 +36,13 @@
37
36
  "license": "MIT",
38
37
  "dependencies": {
39
38
  "any-touch": "^2.2.0",
40
- "worker-timers": "^8.0.21"
39
+ "worker-timers": "^8.0.23"
41
40
  },
42
41
  "devDependencies": {
43
42
  "@rollup/plugin-commonjs": "^28.0.6",
44
43
  "@rollup/plugin-node-resolve": "^16.0.1",
45
44
  "@rollup/plugin-typescript": "12.1.4",
46
- "rollup": "^4.44.2",
45
+ "rollup": "^4.45.0",
47
46
  "rollup-plugin-clear": "^2.0.7",
48
47
  "rollup-plugin-import-css": "^4.0.1",
49
48
  "tslib": "^2.8.1",
package/src/Pops.ts CHANGED
@@ -36,7 +36,7 @@ class Pops {
36
36
  /** 配置 */
37
37
  config = {
38
38
  /** 版本号 */
39
- version: "2025.7.11",
39
+ version: "2025.7.12",
40
40
  cssText: PopsCSS,
41
41
  /** icon图标的svg代码 */
42
42
  iconSVG: PopsIcon.$data,
@@ -458,8 +458,7 @@ export const PopsPanelConfig = (): DeepRequired<PopsPanelDetails> => {
458
458
  },
459
459
  {
460
460
  id: "whitesev-panel-bottom-config-2",
461
- // @ts-ignore
462
- title: "版本:" + pops.config.version,
461
+ title: "版本:xxx.xx.xx",
463
462
  isBottom: true,
464
463
  attributes: [
465
464
  {
@@ -262,6 +262,7 @@ export const PanelHandlerComponents = () => {
262
262
  : asideConfig.title;
263
263
  PopsSafeUtils.setSafeHTML($li, title);
264
264
  /* 处理className */
265
+ this.setElementClassName($li, "pops-panel-aside-item");
265
266
  this.setElementClassName($li, asideConfig.className);
266
267
  this.setElementAttributes($li, asideConfig.attributes);
267
268
  this.setElementProps($li, asideConfig.props);
@@ -2879,12 +2880,12 @@ export const PanelHandlerComponents = () => {
2879
2880
  let formContainerListElement = document.createElement("li");
2880
2881
  /* 每一项<li>内的子<ul>元素 */
2881
2882
  let formContainerULElement = document.createElement("ul");
2882
- formContainerULElement.classList.add(
2883
- "pops-panel-forms-container-item-formlist"
2884
- );
2885
2883
  formContainerListElement.classList.add(
2886
2884
  "pops-panel-forms-container-item"
2887
2885
  );
2886
+ formContainerULElement.classList.add(
2887
+ "pops-panel-forms-container-item-formlist"
2888
+ );
2888
2889
  /* 区域头部的文字 */
2889
2890
  let formHeaderDivElement = popsDOMUtils.createElement("div", {
2890
2891
  className: "pops-panel-forms-container-item-header-text",
@@ -3057,6 +3058,9 @@ export const PanelHandlerComponents = () => {
3057
3058
  headerTitleText.trim() !== ""
3058
3059
  ) {
3059
3060
  let $containerHeaderTitle = document.createElement("li");
3061
+ $containerHeaderTitle.classList.add(
3062
+ "pops-panel-container-header-title-text"
3063
+ );
3060
3064
  Reflect.set($containerHeaderTitle, "__asideConfig__", asideConfig);
3061
3065
  PopsSafeUtils.setSafeHTML($containerHeaderTitle, headerTitleText);
3062
3066
  this.sectionContainerHeaderULElement.appendChild(
@@ -83,8 +83,10 @@ section.pops-panel-container .pops-panel-deepMenu-container-header-ul {
83
83
  border-bottom: 1px solid rgb(229, 229, 229, var(--pops-bd-opacity));
84
84
  flex: 0 auto;
85
85
  }
86
- section.pops-panel-container .pops-panel-container-header-ul li {
87
- text-align: left;
86
+ section.pops-panel-container .pops-panel-container-header-ul li,
87
+ section.pops-panel-container
88
+ .pops-panel-container-header-ul
89
+ li.pops-panel-container-header-title-text {
88
90
  display: flex;
89
91
  justify-content: flex-start !important;
90
92
  margin: 0px !important;
@@ -93,10 +95,11 @@ section.pops-panel-container .pops-panel-container-header-ul li {
93
95
  var(--pops-panel-forms-margin-left-right) +
94
96
  var(--pops-panel-forms-container-li-padding-left-right)
95
97
  );
98
+ text-align: left;
96
99
  }
97
- section.pops-panel-container > ul:last-child {
100
+ section.pops-panel-container ul.pops-panel-container-main-ul {
98
101
  overflow: auto;
99
- flex: 1;
102
+ /*flex: 1;*/
100
103
  }
101
104
  aside.pops-panel-aside ul li {
102
105
  margin: 6px 8px;