n20-common-lib 3.0.71 → 3.0.72

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.71",
3
+ "version": "3.0.72",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -1,244 +1,3 @@
1
- /* v2 版本 TablePro 样式 - 兼容有wrapper和无wrapper的情况 */
2
- .v2-table-pro-wrapper,
3
- /* 兼容旧版本:直接在TablePro组件内的样式 */
4
- :where(.v2-table-pro-wrapper) * {
5
- /* Element UI 表格基础样式 */
6
- & .el-table--small {
7
- font-size: 14px;
8
- }
9
-
10
- & .el-table--mini {
11
- font-size: 12px;
12
- }
13
-
14
- & .el-table th {
15
- font-weight: $--font-weight-primary;
16
- }
17
-
18
- & .el-table--small .el-table__cell {
19
- padding: 8px 0;
20
- }
21
-
22
- & .el-table .cell {
23
- padding-left: 8px;
24
- padding-right: 8px;
25
- }
26
-
27
- & .el-table--small,
28
- & .el-table--mini {
29
- .el-table__cell {
30
- .el-button--text {
31
- padding-top: 2px;
32
- padding-bottom: 2px;
33
- }
34
-
35
- .el-link {
36
- line-height: initial;
37
- }
38
- }
39
- }
40
-
41
- & .el-table--mini {
42
- .el-table__cell {
43
- padding: 2px 0;
44
-
45
- .cell {
46
- padding-left: 4px;
47
- padding-right: 4px;
48
- }
49
-
50
- .el-button--mini,
51
- .el-link {
52
- font-size: 12px;
53
- }
54
- }
55
- }
56
-
57
- /* Element UI 表格排序图标 */
58
- & .el-table {
59
- .caret-wrapper {
60
- display: inline-flex;
61
- flex-direction: row-reverse;
62
- align-items: center;
63
- width: 16px;
64
- height: 16px;
65
- line-height: 16px;
66
- vertical-align: middle;
67
- }
68
-
69
- .sort-caret.ascending,
70
- .sort-caret.descending {
71
- width: 8px;
72
- height: 16px;
73
- border: none;
74
- font-style: normal;
75
- position: static;
76
-
77
- &:hover {
78
- color: $--color-primary-light-6;
79
- }
80
-
81
- &:before {
82
- content: '\e61c';
83
- font-family: 'core-lib-iconfont';
84
- font-size: 12px;
85
- line-height: 12px;
86
- position: relative;
87
- right: 3px;
88
- bottom: 1px;
89
- }
90
- }
91
-
92
- .sort-caret.descending:before {
93
- content: '\e61d';
94
- position: relative;
95
- right: 1px;
96
- bottom: 1px;
97
- }
98
-
99
- .ascending .sort-caret.ascending,
100
- .descending .sort-caret.descending {
101
- color: $--color-primary;
102
- }
103
- }
104
-
105
- /* 过滤器样式 */
106
- & .el-table-filter__bottom {
107
- text-align: center;
108
- }
109
-
110
- & .el-table__column-filter-trigger {
111
- height: 16px;
112
- line-height: 16px;
113
- vertical-align: middle;
114
- position: relative;
115
- bottom: 1px;
116
-
117
- i {
118
- font-size: 16px;
119
- transform: scale(1);
120
- }
121
- }
122
-
123
- & .table-header-popover.el-popover {
124
- padding: 16px;
125
- }
126
-
127
- /* 附件上传hover颜色 */
128
- & .base-table_default {
129
- .el-table__body .hover-active:hover > td {
130
- background-color: #ff3c2f10 !important;
131
- }
132
- }
133
-
134
- /* vxe-table 样式 */
135
- & .vxe-table .vxe-cell--sort {
136
- display: inline-flex !important;
137
- flex-direction: row-reverse !important;
138
- align-items: center !important;
139
- width: 16px !important;
140
- height: 16px !important;
141
- line-height: 16px !important;
142
- vertical-align: middle !important;
143
- cursor: pointer;
144
-
145
- .vxe-sort--asc-btn,
146
- .vxe-sort--desc-btn {
147
- width: 6px;
148
- height: 10px;
149
- color: #333;
150
- border: none;
151
- font-style: normal;
152
- position: static;
153
- }
154
- }
155
-
156
- & .vxe-cell--wrapper {
157
- justify-content: center !important;
158
- }
159
-
160
- & .vxe-header--row {
161
- color: #333;
162
- background-color: #f5f5f5;
163
- }
164
-
165
- & .vxe-cell--filter .vxe-filter--btn {
166
- color: #666;
167
- font-weight: $--font-weight-primary;
168
- cursor: pointer;
169
- font-size: 16px;
170
- }
171
-
172
- & .is--filter-active .vxe-cell--filter .vxe-filter--btn {
173
- color: $--color-primary;
174
- }
175
-
176
- & .is--filter-active .vxe-cell--title {
177
- color: $--color-primary;
178
- }
179
-
180
- & .vxe-table--render-default.size--small {
181
- font-size: 14px !important;
182
- }
183
-
184
- & .vxe-table--render-default.size--mini {
185
- font-size: 14px !important;
186
- }
187
-
188
- & .vxe-header--row th,
189
- & th.vxe-header--column {
190
- position: relative;
191
- font-weight: $--font-weight-primary;
192
- }
193
-
194
- & .vxe-table--tooltip-wrapper {
195
- z-index: 9999 !important;
196
- }
197
-
198
- &
199
- .cell-default-set--
200
- .vxe-table--body-wrapper
201
- .vxe-body--row
202
- .vxe-body--column
203
- .vxe-cell
204
- .vxe-cell--label:empty::before {
205
- content: '--';
206
- }
207
-
208
- & .n20-table-pro.vxe-table--render-default {
209
- font-family: PingFang SC, Microsoft YaHei, Arial, sans-serif !important;
210
- color: #333;
211
- }
212
-
213
- & .vxe-table-custom-wrap.vxe-body--column.col--ellipsis:not(.col--actived) > .vxe-cell,
214
- & .vxe-table--render-default .vxe-table-custom-wrap.vxe-footer--column.col--ellipsis:not(.col--actived) > .vxe-cell,
215
- & .vxe-table--render-default .vxe-table-custom-wrap.vxe-header--column.col--ellipsis:not(.col--actived) > .vxe-cell {
216
- overflow: hidden;
217
- text-overflow: ellipsis;
218
- white-space: wrap !important;
219
- }
220
-
221
- & .vxe-table--render-default.size--small .vxe-table-custom-wrap.vxe-body--column.col--ellipsis > .vxe-cell,
222
- & .vxe-table--render-default.size--small .vxe-table-custom-wrap.vxe-footer--column.col--ellipsis > .vxe-cell,
223
- & .vxe-table--render-default.size--small .vxe-table-custom-wrap.vxe-header--column.col--ellipsis > .vxe-cell {
224
- max-height: 100%;
225
- }
226
-
227
- & .vxe-header--column {
228
- .vxe-cell {
229
- justify-content: center !important;
230
- }
231
- }
232
-
233
- & .el-table th.el-table__cell > .cell {
234
- overflow: hidden;
235
- text-overflow: ellipsis;
236
- white-space: nowrap;
237
- }
238
- }
239
-
240
- /* 为没有wrapper的旧版本组件添加兼容样式 */
241
- /* 这些全局样式会被v3版本的wrapper样式覆盖,实现兼容 */
242
1
  .el-table--small {
243
2
  font-size: 14px;
244
3
  }
@@ -281,6 +40,7 @@
281
40
  .cell {
282
41
  padding-left: 4px;
283
42
  padding-right: 4px;
43
+ // line-height: 18px;
284
44
  }
285
45
 
286
46
  .el-button--mini,
@@ -290,8 +50,8 @@
290
50
  }
291
51
  }
292
52
 
293
- /* Element UI 表格排序图标 */
294
53
  .el-table {
54
+ /* 排序 */
295
55
  .caret-wrapper {
296
56
  display: inline-flex;
297
57
  flex-direction: row-reverse;
@@ -338,7 +98,7 @@
338
98
  }
339
99
  }
340
100
 
341
- /* 过滤器样式 */
101
+ /* 过滤 */
342
102
  .el-table-filter__bottom {
343
103
  text-align: center;
344
104
  }
@@ -367,7 +127,6 @@
367
127
  }
368
128
  }
369
129
 
370
- /* vxe-table 样式 */
371
130
  .vxe-table .vxe-cell--sort {
372
131
  display: inline-flex !important;
373
132
  flex-direction: row-reverse !important;
@@ -417,6 +176,12 @@
417
176
  font-size: 14px !important;
418
177
  }
419
178
 
179
+ .vxe-header--row th,
180
+ th.vxe-header--column {
181
+ position: relative;
182
+ font-weight: $--font-weight-primary;
183
+ }
184
+
420
185
  .vxe-table--tooltip-wrapper {
421
186
  z-index: 9999 !important;
422
187
  }
@@ -444,13 +209,12 @@
444
209
  max-height: 100%;
445
210
  }
446
211
 
447
- .el-table th.el-table__cell > .cell {
448
- overflow: hidden;
449
- text-overflow: ellipsis;
450
- white-space: nowrap;
212
+ .vxe-header--column {
213
+ .vxe-cell {
214
+ justify-content: center !important;
215
+ }
451
216
  }
452
217
 
453
- /* TableSetSize 组件样式 - 仅在v2版本中引入 */
454
218
  @import '../../components/TableSetSize/style.scss';
455
219
 
456
220
  .el-table-set-size-item {
@@ -463,14 +227,8 @@
463
227
  }
464
228
  }
465
229
 
466
- @import '../../components/TableSetSize/style.scss';
467
-
468
- .el-table-set-size-item {
469
- .icon-mini {
470
- background-image: url('../../components/TableSetSize/small.png');
471
- }
472
-
473
- .icon-mini {
474
- background-image: url('../../components/TableSetSize/mini.png');
475
- }
230
+ .el-table th.el-table__cell > .cell {
231
+ overflow: hidden;
232
+ text-overflow: ellipsis;
233
+ white-space: nowrap;
476
234
  }