n20-common-lib 3.0.67 → 3.0.68

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": "n20-common-lib",
3
- "version": "3.0.67",
3
+ "version": "3.0.68",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -1,29 +1,31 @@
1
- /* v2 版本 TablePro 样式 - 使用独特前缀实现样式隔离 */
2
- .v2-table-pro-wrapper {
1
+ /* v2 版本 TablePro 样式 - 兼容有wrapper和无wrapper的情况 */
2
+ .v2-table-pro-wrapper,
3
+ /* 兼容旧版本:直接在TablePro组件内的样式 */
4
+ :where(.v2-table-pro-wrapper) * {
3
5
  /* Element UI 表格基础样式 */
4
- .el-table--small {
6
+ & .el-table--small {
5
7
  font-size: 14px;
6
8
  }
7
9
 
8
- .el-table--mini {
10
+ & .el-table--mini {
9
11
  font-size: 12px;
10
12
  }
11
13
 
12
- .el-table th {
14
+ & .el-table th {
13
15
  font-weight: $--font-weight-primary;
14
16
  }
15
17
 
16
- .el-table--small .el-table__cell {
18
+ & .el-table--small .el-table__cell {
17
19
  padding: 8px 0;
18
20
  }
19
21
 
20
- .el-table .cell {
22
+ & .el-table .cell {
21
23
  padding-left: 8px;
22
24
  padding-right: 8px;
23
25
  }
24
26
 
25
- .el-table--small,
26
- .el-table--mini {
27
+ & .el-table--small,
28
+ & .el-table--mini {
27
29
  .el-table__cell {
28
30
  .el-button--text {
29
31
  padding-top: 2px;
@@ -36,7 +38,7 @@
36
38
  }
37
39
  }
38
40
 
39
- .el-table--mini {
41
+ & .el-table--mini {
40
42
  .el-table__cell {
41
43
  padding: 2px 0;
42
44
 
@@ -53,7 +55,7 @@
53
55
  }
54
56
 
55
57
  /* Element UI 表格排序图标 */
56
- .el-table {
58
+ & .el-table {
57
59
  .caret-wrapper {
58
60
  display: inline-flex;
59
61
  flex-direction: row-reverse;
@@ -101,11 +103,11 @@
101
103
  }
102
104
 
103
105
  /* 过滤器样式 */
104
- .el-table-filter__bottom {
106
+ & .el-table-filter__bottom {
105
107
  text-align: center;
106
108
  }
107
109
 
108
- .el-table__column-filter-trigger {
110
+ & .el-table__column-filter-trigger {
109
111
  height: 16px;
110
112
  line-height: 16px;
111
113
  vertical-align: middle;
@@ -118,19 +120,19 @@
118
120
  }
119
121
  }
120
122
 
121
- .table-header-popover.el-popover {
123
+ & .table-header-popover.el-popover {
122
124
  padding: 16px;
123
125
  }
124
126
 
125
127
  /* 附件上传hover颜色 */
126
- .base-table_default {
128
+ & .base-table_default {
127
129
  .el-table__body .hover-active:hover > td {
128
130
  background-color: #ff3c2f10 !important;
129
131
  }
130
132
  }
131
133
 
132
134
  /* vxe-table 样式 */
133
- .vxe-table .vxe-cell--sort {
135
+ & .vxe-table .vxe-cell--sort {
134
136
  display: inline-flex !important;
135
137
  flex-direction: row-reverse !important;
136
138
  align-items: center !important;
@@ -150,84 +152,310 @@
150
152
  position: static;
151
153
  }
152
154
  }
153
- .vxe-cell--wrapper {
155
+
156
+ & .vxe-cell--wrapper {
154
157
  justify-content: center !important;
155
158
  }
156
- .vxe-header--row {
159
+
160
+ & .vxe-header--row {
157
161
  color: #333;
158
162
  background-color: #f5f5f5;
159
163
  }
160
164
 
161
- .vxe-cell--filter .vxe-filter--btn {
165
+ & .vxe-cell--filter .vxe-filter--btn {
162
166
  color: #666;
163
167
  font-weight: $--font-weight-primary;
164
168
  cursor: pointer;
165
169
  font-size: 16px;
166
170
  }
167
171
 
168
- .is--filter-active .vxe-cell--filter .vxe-filter--btn {
172
+ & .is--filter-active .vxe-cell--filter .vxe-filter--btn {
169
173
  color: $--color-primary;
170
174
  }
171
175
 
172
- .is--filter-active .vxe-cell--title {
176
+ & .is--filter-active .vxe-cell--title {
173
177
  color: $--color-primary;
174
178
  }
175
179
 
176
- .vxe-table--render-default.size--small {
180
+ & .vxe-table--render-default.size--small {
177
181
  font-size: 14px !important;
178
182
  }
179
183
 
180
- .vxe-table--render-default.size--mini {
184
+ & .vxe-table--render-default.size--mini {
181
185
  font-size: 14px !important;
182
186
  }
183
187
 
184
- .vxe-header--row th,
185
- th.vxe-header--column {
188
+ & .vxe-header--row th,
189
+ & th.vxe-header--column {
186
190
  position: relative;
187
191
  font-weight: $--font-weight-primary;
188
192
  }
189
193
 
190
- .vxe-table--tooltip-wrapper {
194
+ & .vxe-table--tooltip-wrapper {
191
195
  z-index: 9999 !important;
192
196
  }
193
197
 
194
- .cell-default-set--
195
- .vxe-table--body-wrapper
196
- .vxe-body--row
197
- .vxe-body--column
198
- .vxe-cell
199
- .vxe-cell--label:empty::before {
198
+ & .cell-default-set-- .vxe-table--body-wrapper .vxe-body--row .vxe-body--column .vxe-cell .vxe-cell--label:empty::before {
200
199
  content: '--';
201
200
  }
202
201
 
203
- .n20-table-pro.vxe-table--render-default {
202
+ & .n20-table-pro.vxe-table--render-default {
204
203
  font-family: PingFang SC, Microsoft YaHei, Arial, sans-serif !important;
205
204
  color: #333;
206
205
  }
207
206
 
208
- .vxe-table-custom-wrap.vxe-body--column.col--ellipsis:not(.col--actived) > .vxe-cell,
209
- .vxe-table--render-default .vxe-table-custom-wrap.vxe-footer--column.col--ellipsis:not(.col--actived) > .vxe-cell,
210
- .vxe-table--render-default .vxe-table-custom-wrap.vxe-header--column.col--ellipsis:not(.col--actived) > .vxe-cell {
207
+ & .vxe-table-custom-wrap.vxe-body--column.col--ellipsis:not(.col--actived) > .vxe-cell,
208
+ & .vxe-table--render-default .vxe-table-custom-wrap.vxe-footer--column.col--ellipsis:not(.col--actived) > .vxe-cell,
209
+ & .vxe-table--render-default .vxe-table-custom-wrap.vxe-header--column.col--ellipsis:not(.col--actived) > .vxe-cell {
211
210
  overflow: hidden;
212
211
  text-overflow: ellipsis;
213
212
  white-space: wrap !important;
214
213
  }
215
214
 
216
- .vxe-table--render-default.size--small .vxe-table-custom-wrap.vxe-body--column.col--ellipsis > .vxe-cell,
217
- .vxe-table--render-default.size--small .vxe-table-custom-wrap.vxe-footer--column.col--ellipsis > .vxe-cell,
218
- .vxe-table--render-default.size--small .vxe-table-custom-wrap.vxe-header--column.col--ellipsis > .vxe-cell {
215
+ & .vxe-table--render-default.size--small .vxe-table-custom-wrap.vxe-body--column.col--ellipsis > .vxe-cell,
216
+ & .vxe-table--render-default.size--small .vxe-table-custom-wrap.vxe-footer--column.col--ellipsis > .vxe-cell,
217
+ & .vxe-table--render-default.size--small .vxe-table-custom-wrap.vxe-header--column.col--ellipsis > .vxe-cell {
219
218
  max-height: 100%;
220
219
  }
221
220
 
222
- .vxe-header--column {
221
+ & .vxe-header--column {
223
222
  .vxe-cell {
224
223
  justify-content: center !important;
225
224
  }
226
225
  }
227
226
 
228
- .el-table th.el-table__cell > .cell {
227
+ & .el-table th.el-table__cell > .cell {
229
228
  overflow: hidden;
230
229
  text-overflow: ellipsis;
231
230
  white-space: nowrap;
232
231
  }
233
232
  }
233
+
234
+ /* 为没有wrapper的旧版本组件添加兼容样式 - 全局作用域 */
235
+ /* 这些样式会应用于所有TablePro组件,无论是否有wrapper */
236
+ .el-table--small {
237
+ font-size: 14px;
238
+ }
239
+
240
+ .el-table--mini {
241
+ font-size: 12px;
242
+ }
243
+
244
+ .el-table th {
245
+ font-weight: $--font-weight-primary;
246
+ }
247
+
248
+ .el-table--small .el-table__cell {
249
+ padding: 8px 0;
250
+ }
251
+
252
+ .el-table .cell {
253
+ padding-left: 8px;
254
+ padding-right: 8px;
255
+ }
256
+
257
+ .el-table--small,
258
+ .el-table--mini {
259
+ .el-table__cell {
260
+ .el-button--text {
261
+ padding-top: 2px;
262
+ padding-bottom: 2px;
263
+ }
264
+
265
+ .el-link {
266
+ line-height: initial;
267
+ }
268
+ }
269
+ }
270
+
271
+ .el-table--mini {
272
+ .el-table__cell {
273
+ padding: 2px 0;
274
+
275
+ .cell {
276
+ padding-left: 4px;
277
+ padding-right: 4px;
278
+ }
279
+
280
+ .el-button--mini,
281
+ .el-link {
282
+ font-size: 12px;
283
+ }
284
+ }
285
+ }
286
+
287
+ /* Element UI 表格排序图标 */
288
+ .el-table {
289
+ .caret-wrapper {
290
+ display: inline-flex;
291
+ flex-direction: row-reverse;
292
+ align-items: center;
293
+ width: 16px;
294
+ height: 16px;
295
+ line-height: 16px;
296
+ vertical-align: middle;
297
+ }
298
+
299
+ .sort-caret.ascending,
300
+ .sort-caret.descending {
301
+ width: 8px;
302
+ height: 16px;
303
+ border: none;
304
+ font-style: normal;
305
+ position: static;
306
+
307
+ &:hover {
308
+ color: $--color-primary-light-6;
309
+ }
310
+
311
+ &:before {
312
+ content: '\e61c';
313
+ font-family: 'core-lib-iconfont';
314
+ font-size: 12px;
315
+ line-height: 12px;
316
+ position: relative;
317
+ right: 3px;
318
+ bottom: 1px;
319
+ }
320
+ }
321
+
322
+ .sort-caret.descending:before {
323
+ content: '\e61d';
324
+ position: relative;
325
+ right: 1px;
326
+ bottom: 1px;
327
+ }
328
+
329
+ .ascending .sort-caret.ascending,
330
+ .descending .sort-caret.descending {
331
+ color: $--color-primary;
332
+ }
333
+ }
334
+
335
+ /* 过滤器样式 */
336
+ .el-table-filter__bottom {
337
+ text-align: center;
338
+ }
339
+
340
+ .el-table__column-filter-trigger {
341
+ height: 16px;
342
+ line-height: 16px;
343
+ vertical-align: middle;
344
+ position: relative;
345
+ bottom: 1px;
346
+
347
+ i {
348
+ font-size: 16px;
349
+ transform: scale(1);
350
+ }
351
+ }
352
+
353
+ .table-header-popover.el-popover {
354
+ padding: 16px;
355
+ }
356
+
357
+ /* 附件上传hover颜色 */
358
+ .base-table_default {
359
+ .el-table__body .hover-active:hover > td {
360
+ background-color: #ff3c2f10 !important;
361
+ }
362
+ }
363
+
364
+ /* vxe-table 样式 */
365
+ .vxe-table .vxe-cell--sort {
366
+ display: inline-flex !important;
367
+ flex-direction: row-reverse !important;
368
+ align-items: center !important;
369
+ width: 16px !important;
370
+ height: 16px !important;
371
+ line-height: 16px !important;
372
+ vertical-align: middle !important;
373
+ cursor: pointer;
374
+
375
+ .vxe-sort--asc-btn,
376
+ .vxe-sort--desc-btn {
377
+ width: 6px;
378
+ height: 10px;
379
+ color: #333;
380
+ border: none;
381
+ font-style: normal;
382
+ position: static;
383
+ }
384
+ }
385
+
386
+ .vxe-cell--wrapper {
387
+ justify-content: center !important;
388
+ }
389
+
390
+ .vxe-header--row {
391
+ color: #333;
392
+ background-color: #f5f5f5;
393
+ }
394
+
395
+ .vxe-cell--filter .vxe-filter--btn {
396
+ color: #666;
397
+ font-weight: $--font-weight-primary;
398
+ cursor: pointer;
399
+ font-size: 16px;
400
+ }
401
+
402
+ .is--filter-active .vxe-cell--filter .vxe-filter--btn {
403
+ color: $--color-primary;
404
+ }
405
+
406
+ .is--filter-active .vxe-cell--title {
407
+ color: $--color-primary;
408
+ }
409
+
410
+ .vxe-table--render-default.size--small {
411
+ font-size: 14px !important;
412
+ }
413
+
414
+ .vxe-table--render-default.size--mini {
415
+ font-size: 14px !important;
416
+ }
417
+
418
+ .vxe-header--row th,
419
+ th.vxe-header--column {
420
+ position: relative;
421
+ font-weight: $--font-weight-primary;
422
+ }
423
+
424
+ .vxe-table--tooltip-wrapper {
425
+ z-index: 9999 !important;
426
+ }
427
+
428
+ .cell-default-set-- .vxe-table--body-wrapper .vxe-body--row .vxe-body--column .vxe-cell .vxe-cell--label:empty::before {
429
+ content: '--';
430
+ }
431
+
432
+ .n20-table-pro.vxe-table--render-default {
433
+ font-family: PingFang SC, Microsoft YaHei, Arial, sans-serif !important;
434
+ color: #333;
435
+ }
436
+
437
+ .vxe-table-custom-wrap.vxe-body--column.col--ellipsis:not(.col--actived) > .vxe-cell,
438
+ .vxe-table--render-default .vxe-table-custom-wrap.vxe-footer--column.col--ellipsis:not(.col--actived) > .vxe-cell,
439
+ .vxe-table--render-default .vxe-table-custom-wrap.vxe-header--column.col--ellipsis:not(.col--actived) > .vxe-cell {
440
+ overflow: hidden;
441
+ text-overflow: ellipsis;
442
+ white-space: wrap !important;
443
+ }
444
+
445
+ .vxe-table--render-default.size--small .vxe-table-custom-wrap.vxe-body--column.col--ellipsis > .vxe-cell,
446
+ .vxe-table--render-default.size--small .vxe-table-custom-wrap.vxe-footer--column.col--ellipsis > .vxe-cell,
447
+ .vxe-table--render-default.size--small .vxe-table-custom-wrap.vxe-header--column.col--ellipsis > .vxe-cell {
448
+ max-height: 100%;
449
+ }
450
+
451
+ .vxe-header--column {
452
+ .vxe-cell {
453
+ justify-content: center !important;
454
+ }
455
+ }
456
+
457
+ .el-table th.el-table__cell > .cell {
458
+ overflow: hidden;
459
+ text-overflow: ellipsis;
460
+ white-space: nowrap;
461
+ }