yc-pro-components 0.0.77 → 0.0.79
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/es/components/dialog-form/index.d.ts +1 -1
- package/es/components/dialog-form/src/index.vue.d.ts +1 -1
- package/es/components/display-item/index.d.ts +3 -3
- package/es/components/display-item/src/index.vue.d.ts +3 -3
- package/es/components/drawer-form/index.d.ts +22 -22
- package/es/components/drawer-form/src/index.vue.d.ts +8 -8
- package/es/components/form/index.d.ts +2 -2
- package/es/components/form/src/form-content.vue.d.ts +4 -4
- package/es/components/form/src/index.vue.d.ts +2 -2
- package/es/components/form-item/index.d.ts +11 -11
- package/es/components/form-item/src/index.vue.d.ts +3 -3
- package/es/components/page/index.d.ts +41 -41
- package/es/components/page/src/index.vue.d.ts +9 -9
- package/es/components/render/index.d.ts +3 -3
- package/es/components/render/src/index.vue.d.ts +1 -1
- package/es/components/search/index.d.ts +7 -7
- package/es/components/search/src/index.vue.d.ts +3 -3
- package/es/components/sidebar/index.d.ts +16 -16
- package/es/components/steps-form/index.d.ts +1 -1
- package/es/components/steps-form/src/index.vue.d.ts +1 -1
- package/es/components/table/src/index.vue2.mjs +20 -3
- package/es/components/table/src/table-action-bar.vue.d.ts +1 -1
- package/es/components/table/src/table-column.vue.d.ts +3 -3
- package/es/components/yc-count-to/index.d.ts +2 -2
- package/es/components/yc-count-to/src/normal/index.d.ts +2 -2
- package/es/components/yc-plus-page/src/index.vue.d.ts +31 -31
- package/es/components/yc-plus-tree/src/index.vue.d.ts +2 -2
- package/es/components/yc-select-v2/src/index.vue.d.ts +1 -1
- package/es/components/yc-status-dialog/src/index.vue.d.ts +1 -1
- package/es/hooks/index.d.ts +1 -0
- package/es/hooks/index.mjs +1 -0
- package/es/hooks/usePlusFormReset.d.ts +54 -54
- package/es/hooks/useTableScrollbarTooltip.d.ts +29 -0
- package/es/hooks/useTableScrollbarTooltip.mjs +122 -0
- package/es/index.css +11 -11
- package/es/index.mjs +1 -0
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/es/yc-components/version.d.ts +1 -1
- package/index.css +1 -1
- package/index.js +139 -4
- package/index.min.js +12 -12
- package/index.min.mjs +12 -12
- package/index.mjs +139 -4
- package/lib/components/dialog-form/index.d.ts +1 -1
- package/lib/components/dialog-form/src/index.vue.d.ts +1 -1
- package/lib/components/display-item/index.d.ts +3 -3
- package/lib/components/display-item/src/index.vue.d.ts +3 -3
- package/lib/components/drawer-form/index.d.ts +22 -22
- package/lib/components/drawer-form/src/index.vue.d.ts +8 -8
- package/lib/components/form/index.d.ts +2 -2
- package/lib/components/form/src/form-content.vue.d.ts +4 -4
- package/lib/components/form/src/index.vue.d.ts +2 -2
- package/lib/components/form-item/index.d.ts +11 -11
- package/lib/components/form-item/src/index.vue.d.ts +3 -3
- package/lib/components/page/index.d.ts +41 -41
- package/lib/components/page/src/index.vue.d.ts +9 -9
- package/lib/components/render/index.d.ts +3 -3
- package/lib/components/render/src/index.vue.d.ts +1 -1
- package/lib/components/search/index.d.ts +7 -7
- package/lib/components/search/src/index.vue.d.ts +3 -3
- package/lib/components/sidebar/index.d.ts +16 -16
- package/lib/components/steps-form/index.d.ts +1 -1
- package/lib/components/steps-form/src/index.vue.d.ts +1 -1
- package/lib/components/table/src/index.vue2.js +19 -2
- package/lib/components/table/src/table-action-bar.vue.d.ts +1 -1
- package/lib/components/table/src/table-column.vue.d.ts +3 -3
- package/lib/components/yc-count-to/index.d.ts +2 -2
- package/lib/components/yc-count-to/src/normal/index.d.ts +2 -2
- package/lib/components/yc-plus-page/src/index.vue.d.ts +31 -31
- package/lib/components/yc-plus-tree/src/index.vue.d.ts +2 -2
- package/lib/components/yc-select-v2/src/index.vue.d.ts +1 -1
- package/lib/components/yc-status-dialog/src/index.vue.d.ts +1 -1
- package/lib/hooks/index.d.ts +1 -0
- package/lib/hooks/index.js +2 -0
- package/lib/hooks/usePlusFormReset.d.ts +54 -54
- package/lib/hooks/useTableScrollbarTooltip.d.ts +29 -0
- package/lib/hooks/useTableScrollbarTooltip.js +124 -0
- package/lib/index.css +10 -10
- package/lib/index.js +1 -0
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/yc-components/version.d.ts +1 -1
- package/locale/en.js +1 -1
- package/locale/en.min.js +1 -1
- package/locale/en.min.mjs +1 -1
- package/locale/en.mjs +1 -1
- package/locale/ja.js +1 -1
- package/locale/ja.min.js +1 -1
- package/locale/ja.min.mjs +1 -1
- package/locale/ja.mjs +1 -1
- package/locale/ko.js +1 -1
- package/locale/ko.min.js +1 -1
- package/locale/ko.min.mjs +1 -1
- package/locale/ko.mjs +1 -1
- package/locale/zh-cn.js +1 -1
- package/locale/zh-cn.min.js +1 -1
- package/locale/zh-cn.min.mjs +1 -1
- package/locale/zh-cn.mjs +1 -1
- package/locale/zh-tw.js +1 -1
- package/locale/zh-tw.min.js +1 -1
- package/locale/zh-tw.min.mjs +1 -1
- package/locale/zh-tw.mjs +1 -1
- package/package.json +1 -1
- package/theme-chalk/index.css +1 -1
- package/theme-chalk/plus-table.css +1 -1
- package/theme-chalk/src/table.scss +315 -301
|
@@ -1,301 +1,315 @@
|
|
|
1
|
-
@use 'mixins/config' as *;
|
|
2
|
-
@use 'mixins/mixins' as *;
|
|
3
|
-
@use 'mixins/function' as *;
|
|
4
|
-
|
|
5
|
-
/* 宽松模式下表格行高固定为 50px(包含 padding) */
|
|
6
|
-
.el-table--large {
|
|
7
|
-
.el-table__row {
|
|
8
|
-
td.el-table__cell {
|
|
9
|
-
height: 50px;
|
|
10
|
-
padding: 2px 0;
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
@include b(table) {
|
|
16
|
-
/*
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
//
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
.
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
-
|
|
293
|
-
mask
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
1
|
+
@use 'mixins/config' as *;
|
|
2
|
+
@use 'mixins/mixins' as *;
|
|
3
|
+
@use 'mixins/function' as *;
|
|
4
|
+
|
|
5
|
+
/* 宽松模式下表格行高固定为 50px(包含 padding) */
|
|
6
|
+
.el-table--large {
|
|
7
|
+
.el-table__row {
|
|
8
|
+
td.el-table__cell {
|
|
9
|
+
height: 50px;
|
|
10
|
+
padding: 2px 0;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
@include b(table) {
|
|
16
|
+
/* 横向滚动条 Tooltip 热区扩大,便于 hover 触发 */
|
|
17
|
+
.#{$el-namespace + -scrollbar__bar}.is-horizontal.plus-table__scrollbar-tooltip-target {
|
|
18
|
+
cursor: pointer;
|
|
19
|
+
|
|
20
|
+
&::before {
|
|
21
|
+
position: absolute;
|
|
22
|
+
top: -6px;
|
|
23
|
+
right: 0;
|
|
24
|
+
bottom: -6px;
|
|
25
|
+
left: 0;
|
|
26
|
+
content: '';
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/* 自定义列栏 */
|
|
31
|
+
@include b(table-column) {
|
|
32
|
+
@include e(header) {
|
|
33
|
+
@include e(header__icon) {
|
|
34
|
+
margin-top: -2px;
|
|
35
|
+
margin-left: 2px;
|
|
36
|
+
vertical-align: middle;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/* 表头省略显示样式 - 独立定义确保选择器正确 */
|
|
43
|
+
.plus-table-column__header--ellipsis {
|
|
44
|
+
display: block;
|
|
45
|
+
width: 100%;
|
|
46
|
+
overflow: hidden;
|
|
47
|
+
|
|
48
|
+
.plus-table-column__header-text {
|
|
49
|
+
display: block;
|
|
50
|
+
width: 100%;
|
|
51
|
+
white-space: nowrap;
|
|
52
|
+
overflow: hidden;
|
|
53
|
+
text-overflow: ellipsis;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/* 表头省略显示样式 - 独立定义确保选择器正确 */
|
|
58
|
+
.plus-table-column__header--ellipsis {
|
|
59
|
+
display: inline-flex;
|
|
60
|
+
align-items: center;
|
|
61
|
+
width: 100%;
|
|
62
|
+
gap: 2px;
|
|
63
|
+
|
|
64
|
+
.plus-table-column__header-text {
|
|
65
|
+
flex: 1 1 0;
|
|
66
|
+
min-width: 0;
|
|
67
|
+
white-space: nowrap;
|
|
68
|
+
overflow: hidden;
|
|
69
|
+
text-overflow: ellipsis;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
/* tooltip 图标保持固定,不压缩 */
|
|
73
|
+
.plus-table-column__header__icon {
|
|
74
|
+
flex-shrink: 0;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
@include b(table) {
|
|
79
|
+
/* 操作栏 */
|
|
80
|
+
@include b(table-action-bar) {
|
|
81
|
+
&.is-center {
|
|
82
|
+
.cell {
|
|
83
|
+
justify-content: center;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
&.is-right {
|
|
87
|
+
.cell {
|
|
88
|
+
justify-content: flex-end;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
&.#{$el-namespace + -table-fixed-column--right} {
|
|
93
|
+
background-color: getCssVar('bg-color');
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.cell {
|
|
97
|
+
display: flex;
|
|
98
|
+
align-items: center;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
@include e(dropdown__link) {
|
|
102
|
+
display: inline-flex;
|
|
103
|
+
cursor: pointer;
|
|
104
|
+
user-select: none;
|
|
105
|
+
color: getCssVar('color-primary');
|
|
106
|
+
}
|
|
107
|
+
@include e(more-text) {
|
|
108
|
+
margin-right: 2px;
|
|
109
|
+
}
|
|
110
|
+
@include e(column__link) {
|
|
111
|
+
margin-right: 10px;
|
|
112
|
+
}
|
|
113
|
+
@include e(dropdown) {
|
|
114
|
+
vertical-align: baseline;
|
|
115
|
+
cursor: pointer;
|
|
116
|
+
margin-left: 12px;
|
|
117
|
+
}
|
|
118
|
+
@include elb(link) {
|
|
119
|
+
& + .#{$el-namespace + -link} {
|
|
120
|
+
margin-left: 12px;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
@include elb(icon) {
|
|
124
|
+
cursor: pointer;
|
|
125
|
+
|
|
126
|
+
& + .#{$el-namespace + -icon} {
|
|
127
|
+
margin-left: 12px;
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
/* 排序 */
|
|
133
|
+
@include b(table-column-drag-sort) {
|
|
134
|
+
@include b(table-column-drag-icon) {
|
|
135
|
+
cursor: move;
|
|
136
|
+
padding: 4px;
|
|
137
|
+
box-sizing: border-box;
|
|
138
|
+
font-size: 18px;
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
/* 序号栏 */
|
|
143
|
+
@include b(table-column-index) {
|
|
144
|
+
@include b(table-index-column) {
|
|
145
|
+
display: inline-flex;
|
|
146
|
+
align-items: center;
|
|
147
|
+
justify-content: center;
|
|
148
|
+
word-break: keep-all;
|
|
149
|
+
white-space: nowrap;
|
|
150
|
+
width: 20px;
|
|
151
|
+
height: 20px;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.cell {
|
|
155
|
+
@include b(table-column-index__content) {
|
|
156
|
+
align-items: center;
|
|
157
|
+
display: flex;
|
|
158
|
+
justify-content: center;
|
|
159
|
+
overflow: hidden;
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
/*工具栏*/
|
|
165
|
+
@include b(table-title-bar) {
|
|
166
|
+
display: flex;
|
|
167
|
+
justify-content: space-between;
|
|
168
|
+
align-items: center;
|
|
169
|
+
margin-bottom: 10px;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
@include e(toolbar) {
|
|
173
|
+
display: flex;
|
|
174
|
+
align-items: center;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
@include elb(popper) {
|
|
178
|
+
max-width: 200px;
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
/* 密度设置 */
|
|
183
|
+
@include b(table-title-bar__toolbar__density) {
|
|
184
|
+
display: flex;
|
|
185
|
+
flex-direction: column;
|
|
186
|
+
align-items: center;
|
|
187
|
+
|
|
188
|
+
@include elb(button) {
|
|
189
|
+
margin-top: 10px;
|
|
190
|
+
width: 80px;
|
|
191
|
+
|
|
192
|
+
& + .#{$el-namespace + -button} {
|
|
193
|
+
margin-left: 0;
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
@include b(table-title-bar__toolbar__icon) {
|
|
199
|
+
margin-left: 10px;
|
|
200
|
+
vertical-align: middle;
|
|
201
|
+
cursor: pointer;
|
|
202
|
+
color: getCssVar('text-color-regular');
|
|
203
|
+
}
|
|
204
|
+
/* 列设置 */
|
|
205
|
+
@include b(table-title-bar__toolbar__checkbox__item) {
|
|
206
|
+
margin-left: 6px;
|
|
207
|
+
}
|
|
208
|
+
/* 列设置列表区域 - 限制最大高度,超出滚动 */
|
|
209
|
+
@include b(table-checkbox-sortable-list) {
|
|
210
|
+
max-height: 300px;
|
|
211
|
+
overflow-y: auto;
|
|
212
|
+
}
|
|
213
|
+
/* 列设置 拖拽 item */
|
|
214
|
+
@include b(table-checkbox-item) {
|
|
215
|
+
display: flex;
|
|
216
|
+
align-items: center;
|
|
217
|
+
margin-left: 20px;
|
|
218
|
+
}
|
|
219
|
+
/* 列设置 拖拽handle */
|
|
220
|
+
@include b(table-checkbox-handle) {
|
|
221
|
+
font-size: 18px;
|
|
222
|
+
cursor: move;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
@include b(table-ghost-class) {
|
|
226
|
+
padding: 0 5px;
|
|
227
|
+
border: 1px dashed getCssVar('color-primary');
|
|
228
|
+
background-color: #fff;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
@include b(table-column__edit) {
|
|
232
|
+
cursor: pointer;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
@include b(table-checkbox-checkAll) {
|
|
236
|
+
display: flex;
|
|
237
|
+
justify-content: space-between;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
/* 树形表格展开/收起图标 */
|
|
241
|
+
.el-table__expand-icon {
|
|
242
|
+
display: inline-flex;
|
|
243
|
+
align-items: center;
|
|
244
|
+
justify-content: center;
|
|
245
|
+
width: 20px;
|
|
246
|
+
height: 20px;
|
|
247
|
+
margin-right: 4px;
|
|
248
|
+
cursor: pointer;
|
|
249
|
+
transition: transform 0.2s ease-in-out;
|
|
250
|
+
|
|
251
|
+
// 隐藏默认的 Element Plus 箭头图标
|
|
252
|
+
.el-icon {
|
|
253
|
+
display: none;
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
// 使用 CDN 自定义图标
|
|
257
|
+
&::before {
|
|
258
|
+
content: '';
|
|
259
|
+
display: block;
|
|
260
|
+
width: 16px;
|
|
261
|
+
height: 16px;
|
|
262
|
+
background: url('https://staticcdn.jinbizhihui.com/images/saas-basic-platform/expand_collapse_v2.svg') center center no-repeat;
|
|
263
|
+
background-size: contain;
|
|
264
|
+
transition: transform 0.2s ease-in-out;
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
// 展开状态:旋转 -90 度(向下)
|
|
268
|
+
// &--expanded::before {
|
|
269
|
+
// transform: rotate(-90deg);
|
|
270
|
+
// }
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
/* ==================== el-table 排序图标替换为 CDN 图标 ==================== */
|
|
274
|
+
.el-table .caret-wrapper {
|
|
275
|
+
position: relative;
|
|
276
|
+
display: inline-flex;
|
|
277
|
+
flex-direction: column;
|
|
278
|
+
align-items: center;
|
|
279
|
+
justify-content: center;
|
|
280
|
+
width: 24px;
|
|
281
|
+
height: 24px;
|
|
282
|
+
vertical-align: middle;
|
|
283
|
+
cursor: pointer;
|
|
284
|
+
|
|
285
|
+
// 隐藏原有的升序/降序箭头图标,使用 mask 保留方向独立高亮。
|
|
286
|
+
.sort-caret {
|
|
287
|
+
position: static;
|
|
288
|
+
display: block;
|
|
289
|
+
width: 14px;
|
|
290
|
+
height: 7px;
|
|
291
|
+
border: none;
|
|
292
|
+
background-color: var(--el-text-color-placeholder);
|
|
293
|
+
-webkit-mask: url('https://staticcdn.jinbizhihui.com/images/saas-basic-platform/table_sort_icon.svg') center center no-repeat;
|
|
294
|
+
mask: url('https://staticcdn.jinbizhihui.com/images/saas-basic-platform/table_sort_icon.svg') center center no-repeat;
|
|
295
|
+
-webkit-mask-size: 14px 14px;
|
|
296
|
+
mask-size: 14px 14px;
|
|
297
|
+
transition: background-color 0.2s;
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
.ascending {
|
|
301
|
+
-webkit-mask-position: top center;
|
|
302
|
+
mask-position: top center;
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
.descending {
|
|
306
|
+
-webkit-mask-position: bottom center;
|
|
307
|
+
mask-position: bottom center;
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
// 升序/降序激活状态只高亮对应方向。
|
|
312
|
+
.el-table .ascending .sort-caret.ascending,
|
|
313
|
+
.el-table .descending .sort-caret.descending {
|
|
314
|
+
background-color: var(--el-color-primary);
|
|
315
|
+
}
|