@whitesev/pops 2.1.0 → 2.1.2

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@whitesev/pops",
3
- "version": "2.1.0",
3
+ "version": "2.1.2",
4
4
  "description": "弹窗库",
5
5
  "$schema": "https://json.schemastore.org/package.json",
6
6
  "main": "dist/index.cjs.js",
package/src/Pops.ts CHANGED
@@ -36,7 +36,7 @@ class Pops {
36
36
  /** 配置 */
37
37
  config = {
38
38
  /** 版本号 */
39
- version: "2025.6.6",
39
+ version: "2025.6.12",
40
40
  cssText: PopsCSS,
41
41
  /** icon图标的svg代码 */
42
42
  iconSVG: PopsIcon.$data,
@@ -162,18 +162,27 @@ table.pops-folder-list-table__body {
162
162
  }
163
163
  .pops-folder-content .pops-folder-list {
164
164
  height: 100%;
165
+ display: flex;
166
+ flex-direction: column;
165
167
  }
166
168
  .pops-folder-content .pops-folder-list-table__body-div {
167
169
  height: 100%;
168
- padding-bottom: 85px;
170
+ flex: 1 auto;
171
+ overflow: auto;
172
+ padding-bottom: 0;
169
173
  }
170
174
  .pops-mobile-folder-content .pops-folder-list-table__body-div {
171
175
  height: 100%;
172
- padding-bottom: 40px;
176
+ flex: 1 auto;
177
+ overflow: auto;
178
+ padding-bottom: 0;
173
179
  }
174
180
  .pops-folder-content table.pops-folder-list-table__body {
175
181
  overflow: auto;
176
182
  }
183
+ .pops-folder-content .pops-folder-list-table__header-div {
184
+ flex: 0;
185
+ }
177
186
  .pops-mobile-folder-content .pops-folder-list-table__header-div {
178
187
  display: none;
179
188
  }
@@ -216,6 +225,7 @@ table.pops-folder-list-table__body {
216
225
  vertical-align: middle;
217
226
  }
218
227
  .pops-folder-list .pops-folder-file-list-breadcrumb-primary {
228
+ flex: 0;
219
229
  display: -webkit-box;
220
230
  display: -webkit-flex;
221
231
  display: -ms-flexbox;
@@ -14,6 +14,9 @@
14
14
  --pops-panel-forms-header-icon-size: 20px;
15
15
  --pops-panel-forms-header-padding-top-bottom: 15px;
16
16
  --pops-panel-forms-header-padding-left-right: 10px;
17
+ --pops-panel-forms-container-item-left-text-gap: 6px;
18
+ --pops-panel-forms-container-item-left-desc-text-size: 0.8em;
19
+ --pops-panel-forms-container-item-left-desc-text-color: #6c6c6c;
17
20
  --pops-panel-forms-container-item-bg-color: #ffffff;
18
21
  --pops-panel-forms-container-item-title-color: #333;
19
22
  --pops-panel-forms-container-item-border-radius: 6px;
@@ -191,22 +194,21 @@ section.pops-panel-container
191
194
  section.pops-panel-container .pops-panel-forms-container-item ul li:last-child {
192
195
  border: 0;
193
196
  }
194
- /* 主文字 */
195
- /*section.pops-panel-container
196
- .pops-panel-forms-container-item
197
- .pops-panel-item-left-text
198
- .pops-panel-item-left-main-text {
199
- line-height: 2;
200
- }*/
201
- /* 描述文字 */
202
- section.pops-panel-container
203
- .pops-panel-forms-container-item
204
- .pops-panel-item-left-text
205
- .pops-panel-item-left-desc-text {
206
- line-height: normal;
207
- margin-top: 6px;
208
- font-size: 0.8em;
209
- color: rgb(108, 108, 108);
197
+ /* 左侧的文字 */
198
+ section.pops-panel-container .pops-panel-item-left-text {
199
+ display: flex;
200
+ flex-direction: column;
201
+ gap: var(--pops-panel-forms-container-item-left-text-gap);
202
+ }
203
+
204
+ /* 左侧的主文字 */
205
+ section.pops-panel-container .pops-panel-item-left-main-text {
206
+ /*line-height: 2;*/
207
+ }
208
+ /* 左侧的描述文字 */
209
+ section.pops-panel-container .pops-panel-item-left-desc-text {
210
+ font-size: var(--pops-panel-forms-container-item-left-desc-text-size);
211
+ color: var(--pops-panel-forms-container-item-left-desc-text-color);
210
212
  }
211
213
 
212
214
  /* 折叠面板 */
@@ -1077,35 +1079,8 @@ section.pops-panel-container
1077
1079
  }
1078
1080
  /* deepMenu的css */
1079
1081
 
1080
- /* <code> */
1081
- .pops[type-value="panel"] code {
1082
- font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
1083
- font-size: 0.85em;
1084
- color: #000;
1085
- background-color: #f0f0f0;
1086
- border-radius: 3px;
1087
- border: 0;
1088
- padding: 0.2em 0;
1089
- white-space: normal;
1090
- background: #f5f5f5;
1091
- text-wrap: wrap;
1092
- text-align: left;
1093
- word-spacing: normal;
1094
- word-break: normal;
1095
- word-wrap: normal;
1096
- line-height: 1.4;
1097
- -moz-tab-size: 8;
1098
- -o-tab-size: 8;
1099
- tab-size: 8;
1100
- -webkit-hyphens: none;
1101
- -moz-hyphens: none;
1102
- -ms-hyphens: none;
1103
- hyphens: none;
1104
- direction: ltr;
1105
- }
1106
-
1107
- .pops[type-value="panel"] code::before,
1108
- .pops[type-value="panel"] code::after {
1109
- letter-spacing: -0.2em;
1110
- content: "\00a0";
1082
+ /* 文字对齐 */
1083
+ .pops-panel-item-left-desc-text:has(code) {
1084
+ display: flex;
1085
+ align-items: baseline;
1111
1086
  }
package/src/css/index.css CHANGED
@@ -145,3 +145,36 @@ button.pops-header-control i:hover {
145
145
  -ms-user-select: none;
146
146
  user-select: none;
147
147
  }
148
+
149
+ /* <code> */
150
+ .pops code {
151
+ font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
152
+ font-size: 0.85em;
153
+ color: #000;
154
+ background-color: #f0f0f0;
155
+ border-radius: 3px;
156
+ border: 0;
157
+ padding: 0.2em 0;
158
+ white-space: normal;
159
+ background: #f5f5f5;
160
+ text-wrap: wrap;
161
+ text-align: left;
162
+ word-spacing: normal;
163
+ word-break: normal;
164
+ word-wrap: normal;
165
+ line-height: 1.4;
166
+ -moz-tab-size: 8;
167
+ -o-tab-size: 8;
168
+ tab-size: 8;
169
+ -webkit-hyphens: none;
170
+ -moz-hyphens: none;
171
+ -ms-hyphens: none;
172
+ hyphens: none;
173
+ direction: ltr;
174
+ }
175
+
176
+ .pops code::before,
177
+ .pops code::after {
178
+ letter-spacing: -0.2em;
179
+ content: "\00a0";
180
+ }