@koi-design/uxd-ui 14.0.4 → 14.0.6
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/Calendar/Calendar.vue.d.ts +15 -0
- package/es/components/Calendar/Header.vue.d.ts +15 -0
- package/es/components/Calendar/index.d.ts +30 -0
- package/es/components/Radio/Radio.mjs +5 -4
- package/es/components/Radio/Radio.mjs.map +1 -1
- package/es/components/Radio/Radio.type.d.ts +4 -0
- package/es/components/Radio/Radio.type.mjs +4 -0
- package/es/components/Radio/Radio.type.mjs.map +1 -1
- package/es/components/Radio/Radio.vue.d.ts +9 -0
- package/es/components/Radio/index.d.ts +15 -0
- package/es/components/Table/BaseTable.mjs +20 -6
- package/es/components/Table/BaseTable.mjs.map +1 -1
- package/es/components/Table/BaseTable.vue.d.ts +44 -9
- package/es/components/Table/BodyTable.vue.d.ts +44 -9
- package/es/components/Table/HeadTable.vue.d.ts +44 -9
- package/es/components/Table/Table.mjs +8 -9
- package/es/components/Table/Table.mjs.map +1 -1
- package/es/components/Table/Table.type.d.ts +7 -5
- package/es/components/Table/Table.type.mjs.map +1 -1
- package/es/components/Table/Table.vue.d.ts +88 -18
- package/es/components/Table/TableBox.vue.d.ts +88 -18
- package/es/components/Table/hooks/useTableResize.d.ts +1 -1
- package/es/components/Table/hooks/useTableResize.mjs +13 -71
- package/es/components/Table/hooks/useTableResize.mjs.map +1 -1
- package/es/components/Table/tableUnits/ColGroup.mjs +8 -5
- package/es/components/Table/tableUnits/ColGroup.mjs.map +1 -1
- package/es/components/Table/tableUnits/ExpandIcon.mjs +2 -2
- package/es/components/Table/tableUnits/ExpandIcon.mjs.map +1 -1
- package/es/components/Table/tableUnits/ExpandIcon.vue.d.ts +3 -3
- package/es/components/Table/tableUnits/ExpandRows.mjs.map +1 -1
- package/es/components/Table/tableUnits/ExpandRows.vue.d.ts +21 -3
- package/es/components/Table/tableUnits/SelectionBox.vue.d.ts +15 -0
- package/es/components/Table/tableUnits/TableBody.vue.d.ts +42 -6
- package/es/components/Table/tableUnits/TableCell.mjs +108 -95
- package/es/components/Table/tableUnits/TableCell.mjs.map +1 -1
- package/es/components/Table/tableUnits/TableCell.vue.d.ts +21 -3
- package/es/components/Table/tableUnits/TableRow.vue.d.ts +21 -3
- package/es/components/Tabs/TabNav.mjs +4 -5
- package/es/components/Tabs/TabNav.mjs.map +1 -1
- package/es/components/Tabs/TabNav.vue.d.ts +1 -1
- package/es/components/Tabs/Tabs.d.ts +1 -1
- package/es/components/Tabs/index.d.ts +3 -3
- package/es/components/base/ResizeObserver.mjs +1 -1
- package/es/components/base/ResizeObserver.mjs.map +1 -1
- package/lib/components/Calendar/Calendar.vue.d.ts +15 -0
- package/lib/components/Calendar/Header.vue.d.ts +15 -0
- package/lib/components/Calendar/index.d.ts +30 -0
- package/lib/components/Radio/Radio.js +4 -3
- package/lib/components/Radio/Radio.js.map +1 -1
- package/lib/components/Radio/Radio.type.d.ts +4 -0
- package/lib/components/Radio/Radio.type.js +4 -0
- package/lib/components/Radio/Radio.type.js.map +1 -1
- package/lib/components/Radio/Radio.vue.d.ts +9 -0
- package/lib/components/Radio/index.d.ts +15 -0
- package/lib/components/Table/BaseTable.js +20 -6
- package/lib/components/Table/BaseTable.js.map +1 -1
- package/lib/components/Table/BaseTable.vue.d.ts +44 -9
- package/lib/components/Table/BodyTable.vue.d.ts +44 -9
- package/lib/components/Table/HeadTable.vue.d.ts +44 -9
- package/lib/components/Table/Table.js +7 -8
- package/lib/components/Table/Table.js.map +1 -1
- package/lib/components/Table/Table.type.d.ts +7 -5
- package/lib/components/Table/Table.type.js.map +1 -1
- package/lib/components/Table/Table.vue.d.ts +88 -18
- package/lib/components/Table/TableBox.vue.d.ts +88 -18
- package/lib/components/Table/hooks/useTableResize.d.ts +1 -1
- package/lib/components/Table/hooks/useTableResize.js +11 -69
- package/lib/components/Table/hooks/useTableResize.js.map +1 -1
- package/lib/components/Table/tableUnits/ColGroup.js +8 -5
- package/lib/components/Table/tableUnits/ColGroup.js.map +1 -1
- package/lib/components/Table/tableUnits/ExpandIcon.js +1 -1
- package/lib/components/Table/tableUnits/ExpandIcon.js.map +1 -1
- package/lib/components/Table/tableUnits/ExpandIcon.vue.d.ts +3 -3
- package/lib/components/Table/tableUnits/ExpandRows.js.map +1 -1
- package/lib/components/Table/tableUnits/ExpandRows.vue.d.ts +21 -3
- package/lib/components/Table/tableUnits/SelectionBox.vue.d.ts +15 -0
- package/lib/components/Table/tableUnits/TableBody.vue.d.ts +42 -6
- package/lib/components/Table/tableUnits/TableCell.js +107 -94
- package/lib/components/Table/tableUnits/TableCell.js.map +1 -1
- package/lib/components/Table/tableUnits/TableCell.vue.d.ts +21 -3
- package/lib/components/Table/tableUnits/TableRow.vue.d.ts +21 -3
- package/lib/components/Tabs/TabNav.js +3 -4
- package/lib/components/Tabs/TabNav.js.map +1 -1
- package/lib/components/Tabs/TabNav.vue.d.ts +1 -1
- package/lib/components/Tabs/Tabs.d.ts +1 -1
- package/lib/components/Tabs/index.d.ts +3 -3
- package/lib/components/base/ResizeObserver.js +1 -1
- package/lib/components/base/ResizeObserver.js.map +1 -1
- package/package.json +1 -1
- package/styles/components/alert/index.css +1 -1
- package/styles/components/autoComplete/index.css +1 -1
- package/styles/components/avatar/index.css +1 -1
- package/styles/components/button/index.css +1 -1
- package/styles/components/carousel/index.css +1 -1
- package/styles/components/cascader/index.css +1 -1
- package/styles/components/datePicker/index.css +1 -1
- package/styles/components/dropdown/index.css +1 -1
- package/styles/components/dropdown/index.less +2 -3
- package/styles/components/form/index.css +1 -1
- package/styles/components/icon/index.css +1 -1
- package/styles/components/input/index.css +1 -1
- package/styles/components/inputNumber/index.css +1 -1
- package/styles/components/link/index.css +1 -1
- package/styles/components/mentions/index.css +1 -1
- package/styles/components/modal/index.css +1 -1
- package/styles/components/select/index.css +1 -1
- package/styles/components/spin/index.css +1 -1
- package/styles/components/table/index.css +1 -1
- package/styles/components/table/index.less +106 -242
- package/styles/components/table/var.less +16 -31
- package/styles/components/tabs/borderCard.less +23 -27
- package/styles/components/tabs/card.less +18 -37
- package/styles/components/tabs/index.css +1 -1
- package/styles/components/tabs/index.less +103 -72
- package/styles/components/tabs/var.less +16 -71
- package/styles/components/timePicker/index.css +1 -1
- package/styles/cssVariable.css +1 -1
- package/styles/cssVariable.less +1 -1
- package/styles/index.css +1 -1
- package/types/components/Calendar/Calendar.vue.d.ts +15 -0
- package/types/components/Calendar/Header.vue.d.ts +15 -0
- package/types/components/Calendar/index.d.ts +30 -0
- package/types/components/Radio/Radio.type.d.ts +4 -0
- package/types/components/Radio/Radio.vue.d.ts +9 -0
- package/types/components/Radio/index.d.ts +15 -0
- package/types/components/Table/BaseTable.vue.d.ts +44 -9
- package/types/components/Table/BodyTable.vue.d.ts +44 -9
- package/types/components/Table/HeadTable.vue.d.ts +44 -9
- package/types/components/Table/Table.type.d.ts +7 -5
- package/types/components/Table/Table.vue.d.ts +88 -18
- package/types/components/Table/TableBox.vue.d.ts +88 -18
- package/types/components/Table/hooks/useTableResize.d.ts +1 -1
- package/types/components/Table/tableUnits/ExpandIcon.vue.d.ts +3 -3
- package/types/components/Table/tableUnits/ExpandRows.vue.d.ts +21 -3
- package/types/components/Table/tableUnits/SelectionBox.vue.d.ts +15 -0
- package/types/components/Table/tableUnits/TableBody.vue.d.ts +42 -6
- package/types/components/Table/tableUnits/TableCell.vue.d.ts +21 -3
- package/types/components/Table/tableUnits/TableRow.vue.d.ts +21 -3
- package/types/components/Tabs/TabNav.vue.d.ts +1 -1
- package/types/components/Tabs/Tabs.d.ts +1 -1
- package/types/components/Tabs/index.d.ts +3 -3
- package/uxd-ui.css +1 -1
- package/uxd-ui.esm.min.mjs +6 -6
- package/uxd-ui.esm.mjs +164 -191
- package/uxd-ui.umd.js +164 -191
- package/uxd-ui.umd.min.js +6 -6
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
|
|
12
12
|
position: relative;
|
|
13
13
|
clear: both;
|
|
14
|
-
background: var(--
|
|
14
|
+
background: var(--color-background);
|
|
15
15
|
|
|
16
16
|
&-body {
|
|
17
17
|
transition: opacity var(--animation-time);
|
|
@@ -34,12 +34,14 @@
|
|
|
34
34
|
|
|
35
35
|
&-thead > tr {
|
|
36
36
|
> th {
|
|
37
|
+
padding: var(--table-header-padding);
|
|
37
38
|
color: var(--table-header-color);
|
|
38
39
|
font-weight: var(--table-header-font-weight);
|
|
39
40
|
text-align: left;
|
|
40
41
|
background: var(--table-header-background);
|
|
41
42
|
transition: background 0.3s ease;
|
|
42
|
-
|
|
43
|
+
height: var(--table-header-height);
|
|
44
|
+
border-bottom: 1px solid var(--table-border-color);
|
|
43
45
|
|
|
44
46
|
&[colspan]:not([colspan='1']) {
|
|
45
47
|
text-align: center;
|
|
@@ -47,15 +49,20 @@
|
|
|
47
49
|
}
|
|
48
50
|
}
|
|
49
51
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
// }
|
|
54
|
-
// }
|
|
52
|
+
&-tbody > tr:not(:last-child) > td {
|
|
53
|
+
border-bottom: 1px solid var(--table-border-color);
|
|
54
|
+
}
|
|
55
55
|
|
|
56
56
|
&-tbody > tr > td {
|
|
57
|
-
|
|
57
|
+
padding: var(--table-cell-padding);
|
|
58
|
+
line-height: var(--table-cell-line-height);
|
|
59
|
+
min-height: var(--table-cell-min-height);
|
|
60
|
+
overflow-wrap: break-word;
|
|
58
61
|
transition: background 0.3s;
|
|
62
|
+
|
|
63
|
+
&:empty {
|
|
64
|
+
height: var(--table-cell-min-height);
|
|
65
|
+
}
|
|
59
66
|
}
|
|
60
67
|
|
|
61
68
|
tr {
|
|
@@ -72,18 +79,6 @@
|
|
|
72
79
|
background: none;
|
|
73
80
|
}
|
|
74
81
|
|
|
75
|
-
&-thead > tr > th,
|
|
76
|
-
&-tbody > tr > td {
|
|
77
|
-
padding: var(--table-padding-vertical) var(--table-padding-horizontal);
|
|
78
|
-
line-height: var(--table-line-height);
|
|
79
|
-
min-height: var(--table-row-min-height);
|
|
80
|
-
overflow-wrap: break-word;
|
|
81
|
-
|
|
82
|
-
&:empty {
|
|
83
|
-
height: var(--table-row-min-height);
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
|
|
87
82
|
&-header {
|
|
88
83
|
overflow: hidden;
|
|
89
84
|
background: var(--table-header-background);
|
|
@@ -93,24 +88,25 @@
|
|
|
93
88
|
|
|
94
89
|
&-row {
|
|
95
90
|
&-expand-icon {
|
|
96
|
-
.operation-unit();
|
|
97
|
-
|
|
98
91
|
display: inline-flex;
|
|
99
92
|
justify-content: center;
|
|
100
|
-
|
|
101
|
-
|
|
93
|
+
align-items: center;
|
|
94
|
+
width: var(--icon-font-size);
|
|
95
|
+
height: var(--icon-font-size);
|
|
102
96
|
line-height: 1;
|
|
103
|
-
color:
|
|
104
|
-
background: var(--
|
|
105
|
-
border:
|
|
106
|
-
border-radius: var(--radius-
|
|
97
|
+
color: var(--icon-button-color);
|
|
98
|
+
background: var(--color-background);
|
|
99
|
+
border: 1px solid var(--icon-button-color);
|
|
100
|
+
border-radius: var(--radius-base);
|
|
107
101
|
transition: all 0.3s;
|
|
108
102
|
user-select: none;
|
|
103
|
+
cursor: pointer;
|
|
109
104
|
|
|
110
105
|
&:focus,
|
|
111
106
|
&:hover,
|
|
112
107
|
&:active {
|
|
113
|
-
|
|
108
|
+
color: var(--icon-button-hover-color);
|
|
109
|
+
border-color: var(--icon-button-hover-color);
|
|
114
110
|
}
|
|
115
111
|
|
|
116
112
|
&.@{table-prefix-cls}-row-expanded::after {
|
|
@@ -126,8 +122,8 @@
|
|
|
126
122
|
display: inline-flex;
|
|
127
123
|
justify-content: center;
|
|
128
124
|
align-items: center;
|
|
129
|
-
width: var(--
|
|
130
|
-
height: var(--
|
|
125
|
+
width: var(--icon-font-size);
|
|
126
|
+
height: var(--icon-font-size);
|
|
131
127
|
color: inherit;
|
|
132
128
|
line-height: 1;
|
|
133
129
|
cursor: pointer;
|
|
@@ -177,33 +173,16 @@
|
|
|
177
173
|
|
|
178
174
|
.@{table-prefix-cls}-row-indent + .@{table-prefix-cls}-row-expand-icon,
|
|
179
175
|
.@{table-prefix-cls}-row-indent + .@{table-prefix-cls}-row-expand-custom-icon {
|
|
180
|
-
margin-right: var(--
|
|
176
|
+
margin-right: var(--space-1);
|
|
181
177
|
}
|
|
182
178
|
|
|
183
179
|
tr&-summary-row {
|
|
184
180
|
td {
|
|
185
|
-
background: var(--
|
|
181
|
+
background: var(--color-background-secondary);
|
|
186
182
|
}
|
|
187
183
|
}
|
|
188
184
|
|
|
189
185
|
// ====================== scroll ========================
|
|
190
|
-
// &-scroll {
|
|
191
|
-
// overflow: auto;
|
|
192
|
-
// overflow-x: hidden;
|
|
193
|
-
|
|
194
|
-
// table {
|
|
195
|
-
// // min-width: 100%;
|
|
196
|
-
// // https://github.com/ant-design/ant-design/issues/14545
|
|
197
|
-
// // https://github.com/ant-design/ant-design/issues/19491
|
|
198
|
-
// .@{table-prefix-cls}-fixed-columns-in-body:not([colspan]) {
|
|
199
|
-
// visibility: hidden;
|
|
200
|
-
// // color: transparent;
|
|
201
|
-
// // & > * {
|
|
202
|
-
// // visibility: hidden;
|
|
203
|
-
// // }
|
|
204
|
-
// }
|
|
205
|
-
// }
|
|
206
|
-
// }
|
|
207
186
|
|
|
208
187
|
&-body-inner {
|
|
209
188
|
height: 100%;
|
|
@@ -211,46 +190,18 @@
|
|
|
211
190
|
|
|
212
191
|
&-fixed-header > &-content > &-scroll > &-body {
|
|
213
192
|
position: relative;
|
|
214
|
-
background: var(--
|
|
193
|
+
background: var(--color-background);
|
|
215
194
|
}
|
|
216
195
|
|
|
217
|
-
// &-fixed-header &-body-inner {
|
|
218
|
-
// overflow: scroll;
|
|
219
|
-
// }
|
|
220
|
-
|
|
221
|
-
// &-fixed-header &-scroll &-header {
|
|
222
|
-
// margin-bottom: -20px;
|
|
223
|
-
// padding-bottom: 20px;
|
|
224
|
-
// overflow: scroll;
|
|
225
|
-
// // Workaround for additional scroll bar on the table header
|
|
226
|
-
// // // https://github.com/ant-design/ant-design/issues/6515#issuecomment-419634369
|
|
227
|
-
// //opacity: 0.9999;
|
|
228
|
-
|
|
229
|
-
// &::-webkit-scrollbar {
|
|
230
|
-
// border: 1px solid var(--color-border-split);
|
|
231
|
-
// border-width: 0 0 1px;
|
|
232
|
-
// }
|
|
233
|
-
// }
|
|
234
|
-
|
|
235
|
-
// &-hide-scrollbar {
|
|
236
|
-
// scrollbar-color: transparent transparent;
|
|
237
|
-
// min-width: unset;
|
|
238
|
-
|
|
239
|
-
// &::-webkit-scrollbar {
|
|
240
|
-
// min-width: inherit;
|
|
241
|
-
// background-color: transparent;
|
|
242
|
-
// }
|
|
243
|
-
// }
|
|
244
|
-
|
|
245
196
|
//====================== placeholder =========================
|
|
246
197
|
&-placeholder {
|
|
247
198
|
position: relative;
|
|
248
199
|
z-index: 1;
|
|
249
|
-
padding: var(--table-
|
|
200
|
+
padding: var(--table-cell-padding);
|
|
250
201
|
color: var(--placeholder-color);
|
|
251
202
|
font-size: var(--default-font-size);
|
|
252
203
|
text-align: center;
|
|
253
|
-
background: var(--
|
|
204
|
+
background: var(--color-background);
|
|
254
205
|
}
|
|
255
206
|
|
|
256
207
|
&-radius {
|
|
@@ -280,50 +231,30 @@
|
|
|
280
231
|
// ====================== surface =========================
|
|
281
232
|
|
|
282
233
|
&-surface {
|
|
283
|
-
border:
|
|
284
|
-
|
|
285
|
-
.@{table-prefix-cls}-tbody tr:last-child,
|
|
286
|
-
.@{table-prefix-cls}-tbody > tr:has(+ .@{table-prefix-cls}-expanded-row[style='display: none;']:last-child) {
|
|
287
|
-
--table-row-box-shadow: none;
|
|
288
|
-
}
|
|
289
|
-
}
|
|
290
|
-
|
|
291
|
-
// ====================== ghost =========================
|
|
292
|
-
|
|
293
|
-
&-ghost {
|
|
294
|
-
border: none;
|
|
295
|
-
|
|
296
|
-
.@{table-prefix-cls}-placeholder {
|
|
297
|
-
border-bottom: var(--border-width-base) var(--border-style-base) var(--color-border-split);
|
|
298
|
-
}
|
|
234
|
+
border: 1px solid var(--table-border-color);
|
|
299
235
|
}
|
|
300
236
|
|
|
301
237
|
// ====================== border =========================
|
|
302
238
|
|
|
303
239
|
&-border {
|
|
304
|
-
border:
|
|
240
|
+
border: 1px solid var(--table-border-color);
|
|
305
241
|
|
|
306
242
|
.@{table-prefix-cls}-thead > tr > th:not(.@{table-prefix-cls}-column-header-right),
|
|
307
243
|
.@{table-prefix-cls}-tbody > tr > td:not(:last-child) {
|
|
308
|
-
|
|
244
|
+
border-right: 1px solid var(--table-border-color);
|
|
309
245
|
}
|
|
310
246
|
|
|
311
|
-
.@{table-prefix-cls}-tbody > tr:last-child > td:not(:last-child),
|
|
312
|
-
.@{table-prefix-cls}-tbody > tr:has(+ .@{table-prefix-cls}-expanded-row[style='display: none;']:last-child) > td:not(:last-child) {
|
|
313
|
-
|
|
314
|
-
}
|
|
315
|
-
|
|
316
|
-
.@{table-prefix-cls}-tbody > tr:last-child > td:last-child,
|
|
317
|
-
.@{table-prefix-cls}-tbody > tr:has(+ .@{table-prefix-cls}-expanded-row[style='display: none;']:last-child) > td:last-child {
|
|
318
|
-
box-shadow: none;
|
|
319
|
-
}
|
|
247
|
+
// .@{table-prefix-cls}-tbody > tr:last-child > td:not(:last-child),
|
|
248
|
+
// .@{table-prefix-cls}-tbody > tr:has(+ .@{table-prefix-cls}-expanded-row[style='display: none;']:last-child) > td:not(:last-child) {
|
|
249
|
+
// border-right: 1px solid var(--table-border-color);
|
|
250
|
+
// }
|
|
320
251
|
}
|
|
321
252
|
|
|
322
253
|
// ====================== fixed left&right =========================
|
|
323
254
|
|
|
324
255
|
&-fixed-column {
|
|
325
256
|
position: sticky;
|
|
326
|
-
background-color: var(--
|
|
257
|
+
background-color: var(--color-background);
|
|
327
258
|
z-index: var(--zindex-table-fixed);
|
|
328
259
|
|
|
329
260
|
&-left-last,
|
|
@@ -396,7 +327,6 @@
|
|
|
396
327
|
&-selection {
|
|
397
328
|
display: flex;
|
|
398
329
|
align-items: center;
|
|
399
|
-
height: var(--table-line-height);
|
|
400
330
|
justify-content: center;
|
|
401
331
|
|
|
402
332
|
&-select-all-custom {
|
|
@@ -407,8 +337,8 @@
|
|
|
407
337
|
min-width: 96px;
|
|
408
338
|
margin-top: 5px;
|
|
409
339
|
margin-left: -30px;
|
|
410
|
-
background: var(--
|
|
411
|
-
border-radius: var(--radius
|
|
340
|
+
background: var(--color-background);
|
|
341
|
+
border-radius: var(--dropdown-border-radius);
|
|
412
342
|
box-shadow: var(--dropdown-shadow);
|
|
413
343
|
|
|
414
344
|
.@{css-prefix}-action-down {
|
|
@@ -421,11 +351,11 @@
|
|
|
421
351
|
padding: 0;
|
|
422
352
|
line-height: 1;
|
|
423
353
|
cursor: pointer;
|
|
424
|
-
color: var(--
|
|
354
|
+
color: var(--icon-button-color);
|
|
425
355
|
transition: all 0.3s;
|
|
426
356
|
|
|
427
357
|
&:hover {
|
|
428
|
-
color: var(--
|
|
358
|
+
color: var(--icon-button-hover-color);
|
|
429
359
|
}
|
|
430
360
|
}
|
|
431
361
|
}
|
|
@@ -451,43 +381,34 @@
|
|
|
451
381
|
&.@{table-prefix-cls}-column-has-filters {
|
|
452
382
|
.@{table-prefix-cls}-filter-icon {
|
|
453
383
|
position: absolute;
|
|
454
|
-
top:
|
|
384
|
+
top: 50%;
|
|
455
385
|
right: 0;
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
386
|
+
transform: translateY(-50%);
|
|
387
|
+
width: var(--space-7);
|
|
388
|
+
height: var(--space-7);
|
|
389
|
+
color: var(--icon-button-color);
|
|
459
390
|
font-size: var(--default-font-size);
|
|
391
|
+
border-radius: var(--radius-base);
|
|
460
392
|
text-align: center;
|
|
461
393
|
cursor: pointer;
|
|
462
394
|
transition: all 0.3s;
|
|
463
395
|
|
|
464
396
|
&.@{table-prefix-cls}-filter-open {
|
|
465
|
-
color: var(--
|
|
466
|
-
background: var(--
|
|
397
|
+
color: var(--icon-button-hover-color);
|
|
398
|
+
background: var(--color-background-secondary);
|
|
399
|
+
// background: var(--table-header-filter-active-background);
|
|
467
400
|
}
|
|
468
401
|
|
|
469
402
|
.@{iconfont-css-prefix} {
|
|
470
403
|
position: absolute;
|
|
471
404
|
top: 0;
|
|
472
405
|
left: 50%;
|
|
473
|
-
|
|
406
|
+
transform: translateX(-50%);
|
|
474
407
|
}
|
|
475
|
-
}
|
|
476
|
-
|
|
477
|
-
.@{table-prefix-cls}-filter-selected.@{iconfont-css-prefix} {
|
|
478
|
-
color: var(--primary-color);
|
|
479
|
-
}
|
|
480
|
-
|
|
481
|
-
&:hover {
|
|
482
|
-
.@{table-prefix-cls}-filter-icon {
|
|
483
|
-
&:hover {
|
|
484
|
-
color: var(--gray-a9);
|
|
485
|
-
background: var(--table-header-filter-active-background);
|
|
486
|
-
}
|
|
487
408
|
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
409
|
+
&:hover {
|
|
410
|
+
background: var(--color-background-secondary);
|
|
411
|
+
color: var(--icon-button-hover-color);
|
|
491
412
|
}
|
|
492
413
|
}
|
|
493
414
|
}
|
|
@@ -497,11 +418,15 @@
|
|
|
497
418
|
user-select: none;
|
|
498
419
|
|
|
499
420
|
.@{table-prefix-cls}-column-sorters {
|
|
500
|
-
display:
|
|
421
|
+
display: flex;
|
|
422
|
+
align-items: center;
|
|
423
|
+
padding: var(--space-1) var(--space-1);
|
|
424
|
+
transform: translateX(calc(0px - var(--space-1)));
|
|
425
|
+
border-radius: var(--radius-base);
|
|
501
426
|
|
|
502
427
|
> .@{table-prefix-cls}-column-title {
|
|
503
|
-
display:
|
|
504
|
-
|
|
428
|
+
display: flex;
|
|
429
|
+
align-items: center;
|
|
505
430
|
}
|
|
506
431
|
|
|
507
432
|
> *:not(.@{table-prefix-cls}-column-sorter) {
|
|
@@ -509,28 +434,25 @@
|
|
|
509
434
|
}
|
|
510
435
|
|
|
511
436
|
.@{table-prefix-cls}-column-sorter {
|
|
512
|
-
display:
|
|
513
|
-
|
|
437
|
+
display: flex;
|
|
438
|
+
align-items: center;
|
|
514
439
|
|
|
515
440
|
.@{table-prefix-cls}-column-sorter-inner {
|
|
516
441
|
height: 1em;
|
|
517
442
|
line-height: 1em;
|
|
518
443
|
margin-left: 2px;
|
|
519
|
-
color: var(--
|
|
520
|
-
text-align: center;
|
|
444
|
+
color: var(--icon-button-color);
|
|
521
445
|
transition: all 0.3s;
|
|
522
446
|
|
|
523
447
|
.@{table-prefix-cls}-column-sorter-up,
|
|
524
448
|
.@{table-prefix-cls}-column-sorter-down {
|
|
525
|
-
.iconfont-size-under-12px(11px);
|
|
526
|
-
|
|
527
449
|
display: block;
|
|
528
450
|
height: var(--default-font-size);
|
|
529
451
|
line-height: var(--default-font-size);
|
|
530
452
|
transition: all 0.3s;
|
|
531
453
|
|
|
532
454
|
&.on {
|
|
533
|
-
color: var(--
|
|
455
|
+
color: var(--default-font-color);
|
|
534
456
|
}
|
|
535
457
|
}
|
|
536
458
|
|
|
@@ -548,57 +470,48 @@
|
|
|
548
470
|
}
|
|
549
471
|
}
|
|
550
472
|
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
top: 0;
|
|
554
|
-
right: 0;
|
|
555
|
-
bottom: 0;
|
|
556
|
-
/* stylelint-disable-next-line declaration-block-no-redundant-longhand-properties */
|
|
557
|
-
left: 0;
|
|
558
|
-
background: transparent;
|
|
559
|
-
transition: all 0.3s;
|
|
560
|
-
content: '';
|
|
561
|
-
}
|
|
562
|
-
|
|
563
|
-
&:hover::before {
|
|
564
|
-
background: rgba(0, 0, 0, 4%);
|
|
473
|
+
&:hover {
|
|
474
|
+
background: var(--color-background-secondary);
|
|
565
475
|
}
|
|
566
|
-
}
|
|
567
476
|
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
477
|
+
// &::before {
|
|
478
|
+
// position: absolute;
|
|
479
|
+
// top: 0;
|
|
480
|
+
// right: 0;
|
|
481
|
+
// bottom: 0;
|
|
482
|
+
// /* stylelint-disable-next-line declaration-block-no-redundant-longhand-properties */
|
|
483
|
+
// left: 0;
|
|
484
|
+
// background: transparent;
|
|
485
|
+
// transition: all 0.3s;
|
|
486
|
+
// content: '';
|
|
487
|
+
// }
|
|
575
488
|
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
color: var(--gray-a9);
|
|
580
|
-
}
|
|
489
|
+
// &:hover::before {
|
|
490
|
+
// background: rgba(0, 0, 0, 4%);
|
|
491
|
+
// }
|
|
581
492
|
}
|
|
582
493
|
}
|
|
583
494
|
}
|
|
584
495
|
|
|
585
496
|
&-thead > tr > th.@{table-prefix-cls}-column-sort {
|
|
586
|
-
background: var(--
|
|
497
|
+
background: var(--color-background);
|
|
587
498
|
}
|
|
588
499
|
|
|
589
500
|
&-thead > tr > th &-column-tips-icon {
|
|
590
|
-
margin-left: var(--
|
|
501
|
+
margin-left: var(--space-1);
|
|
591
502
|
cursor: pointer;
|
|
503
|
+
line-height: 1;
|
|
504
|
+
height: auto;
|
|
592
505
|
}
|
|
593
506
|
|
|
594
507
|
&-tbody > tr {
|
|
595
508
|
> td.@{table-prefix-cls}-column-sort {
|
|
596
|
-
background: var(--
|
|
509
|
+
background: var(--color-background);
|
|
597
510
|
}
|
|
598
511
|
|
|
599
512
|
&.@{table-prefix-cls}-row-hover {
|
|
600
513
|
> td.@{table-prefix-cls}-column-sort {
|
|
601
|
-
background: var(--
|
|
514
|
+
background: var(--color-background-secondary);
|
|
602
515
|
}
|
|
603
516
|
}
|
|
604
517
|
}
|
|
@@ -608,6 +521,7 @@
|
|
|
608
521
|
min-width: 96px;
|
|
609
522
|
margin-left: -8px;
|
|
610
523
|
background: var(--table-background-color);
|
|
524
|
+
border: 1px solid var(--color-border-split);
|
|
611
525
|
border-radius: var(--radius-base);
|
|
612
526
|
box-shadow: var(--dropdown-shadow);
|
|
613
527
|
|
|
@@ -638,7 +552,6 @@
|
|
|
638
552
|
.@{css-prefix}-dropdown-menu-submenu-title::after {
|
|
639
553
|
color: var(--primary-color);
|
|
640
554
|
font-weight: bold;
|
|
641
|
-
text-shadow: 0 0 2px var(--primary-a11);
|
|
642
555
|
}
|
|
643
556
|
}
|
|
644
557
|
}
|
|
@@ -655,20 +568,20 @@
|
|
|
655
568
|
&-btns {
|
|
656
569
|
padding: 8px;
|
|
657
570
|
overflow: hidden;
|
|
658
|
-
border-top: var(--border-width-base) var(--border-style-base) var(--color-border-split);
|
|
659
571
|
display: flex;
|
|
660
572
|
justify-content: space-between;
|
|
661
573
|
}
|
|
662
574
|
|
|
663
575
|
&-link {
|
|
664
|
-
color: var(--
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
color: var(--link-hover-color);
|
|
668
|
-
}
|
|
576
|
+
color: var(--default-font-color);
|
|
577
|
+
padding: 0 var(--space-1-5);
|
|
578
|
+
border-radius: var(--radius-base);
|
|
669
579
|
|
|
580
|
+
&:hover,
|
|
670
581
|
&:active {
|
|
671
|
-
|
|
582
|
+
background: var(--color-background-secondary);
|
|
583
|
+
color: var(--default-font-color);
|
|
584
|
+
text-decoration: none;
|
|
672
585
|
}
|
|
673
586
|
}
|
|
674
587
|
}
|
|
@@ -716,72 +629,23 @@
|
|
|
716
629
|
&-stripe {
|
|
717
630
|
tbody > tr {
|
|
718
631
|
&:nth-child(2n) {
|
|
719
|
-
background-color: var(--
|
|
632
|
+
background-color: var(--color-background-secondary);
|
|
720
633
|
|
|
721
634
|
td {
|
|
722
|
-
background-color: var(--
|
|
635
|
+
background-color: var(--color-background-secondary);
|
|
723
636
|
}
|
|
724
637
|
}
|
|
725
638
|
}
|
|
726
639
|
}
|
|
727
640
|
|
|
728
|
-
.table-size(@padding-vertical, @padding-horizontal, @font-size, @line-height, @row-min-height) {
|
|
729
|
-
font-size: @font-size;
|
|
730
|
-
|
|
731
|
-
> .@{table-prefix-cls}-title,
|
|
732
|
-
> .@{table-prefix-cls}-footer {
|
|
733
|
-
padding: @padding-vertical @padding-horizontal;
|
|
734
|
-
}
|
|
735
|
-
|
|
736
|
-
.@{table-prefix-cls}-thead > tr > th,
|
|
737
|
-
.@{table-prefix-cls}-tbody > tr > td {
|
|
738
|
-
padding: @padding-vertical @padding-horizontal;
|
|
739
|
-
line-height: @line-height;
|
|
740
|
-
min-height: @row-min-height;
|
|
741
|
-
|
|
742
|
-
&:empty {
|
|
743
|
-
height: @row-min-height;
|
|
744
|
-
}
|
|
745
|
-
}
|
|
746
|
-
|
|
747
|
-
.@{table-prefix-cls}-thead > tr > th.@{table-prefix-cls}-column-has-actions.@{table-prefix-cls}-column-has-sorters {
|
|
748
|
-
.@{table-prefix-cls}-column-sorter {
|
|
749
|
-
.@{table-prefix-cls}-column-sorter-inner {
|
|
750
|
-
.@{table-prefix-cls}-column-sorter-up,
|
|
751
|
-
.@{table-prefix-cls}-column-sorter-down {
|
|
752
|
-
height: @font-size;
|
|
753
|
-
line-height: @font-size;
|
|
754
|
-
}
|
|
755
|
-
|
|
756
|
-
&-full {
|
|
757
|
-
.@{table-prefix-cls}-column-sorter-up,
|
|
758
|
-
.@{table-prefix-cls}-column-sorter-down {
|
|
759
|
-
height: calc(@font-size / 2);
|
|
760
|
-
display: flex;
|
|
761
|
-
align-items: center;
|
|
762
|
-
}
|
|
763
|
-
}
|
|
764
|
-
}
|
|
765
|
-
}
|
|
766
|
-
}
|
|
767
|
-
|
|
768
|
-
// tr.@{table-prefix-cls}-expanded-row td > .@{table-prefix-cls}-wrapper {
|
|
769
|
-
// @inner-padding-horizontal: var(--table-padding-horizontal-large) / 2;
|
|
770
|
-
|
|
771
|
-
// margin: calc((@padding-vertical * -1) - @inner-padding-horizontal) calc((@padding-vertical * -1) - 1px);
|
|
772
|
-
// }
|
|
773
|
-
}
|
|
774
|
-
|
|
775
641
|
&.@{table-prefix-cls}-large {
|
|
776
|
-
|
|
777
|
-
}
|
|
778
|
-
|
|
779
|
-
&.@{table-prefix-cls}-default {
|
|
780
|
-
.table-size(var(--table-padding-vertical), var(--table-padding-horizontal), var(--default-font-size), var(--table-line-height), var(--table-row-min-height));
|
|
642
|
+
--table-cell-padding: var(--space-3) var(--space-2);
|
|
781
643
|
}
|
|
782
644
|
|
|
783
645
|
&.@{table-prefix-cls}-small {
|
|
784
|
-
|
|
646
|
+
--table-cell-padding: var(--space-1) var(--space-2);
|
|
647
|
+
|
|
648
|
+
font-size: var(--font-size-xs);
|
|
785
649
|
}
|
|
786
650
|
|
|
787
651
|
&-row-skeleton-wrap {
|
|
@@ -827,11 +691,11 @@
|
|
|
827
691
|
|
|
828
692
|
&-pagination {
|
|
829
693
|
&-bottom {
|
|
830
|
-
margin-top: var(--
|
|
694
|
+
margin-top: var(--space-2);
|
|
831
695
|
}
|
|
832
696
|
|
|
833
697
|
&-top {
|
|
834
|
-
margin-bottom: var(--
|
|
698
|
+
margin-bottom: var(--space-2);
|
|
835
699
|
}
|
|
836
700
|
|
|
837
701
|
&-right {
|
|
@@ -1,37 +1,22 @@
|
|
|
1
1
|
.@{table-prefix-cls} {
|
|
2
2
|
&-wrapper {
|
|
3
|
-
|
|
4
|
-
--table-header-background: var(--gray-2);
|
|
3
|
+
//wrapper
|
|
5
4
|
--table-border-color: var(--color-border-split);
|
|
6
|
-
--table-
|
|
7
|
-
--table-
|
|
8
|
-
--table-
|
|
9
|
-
|
|
10
|
-
--table-header-
|
|
11
|
-
--table-header-
|
|
12
|
-
--table-header-color: var(--gray-12);
|
|
13
|
-
--table-header-icon-color: var(--gray-8);
|
|
14
|
-
--table-header-filter-active-background: var(--gray-5);
|
|
5
|
+
--table-border-radius: var(--radius-md);
|
|
6
|
+
--table-fixed-left-shadow: inset 10px 0 8px -8px rgba(0, 0, 0, 10%);
|
|
7
|
+
--table-fixed-right-shadow: inset -10px 0 8px -8px rgba(0, 0, 0, 10%);
|
|
8
|
+
//head
|
|
9
|
+
--table-header-background: var(--color-background);
|
|
10
|
+
--table-header-color: var(--secondary-font-color);
|
|
15
11
|
--table-header-font-weight: var(--font-weight-medium);
|
|
16
|
-
--table-header-
|
|
17
|
-
--table-
|
|
18
|
-
|
|
19
|
-
--table-
|
|
20
|
-
--table-
|
|
21
|
-
|
|
22
|
-
--table-
|
|
23
|
-
--table-
|
|
24
|
-
--table-
|
|
25
|
-
--table-row-min-height-large: calc(var(--table-padding-vertical-large) * 2 + var(--table-line-height-large));
|
|
26
|
-
--table-line-height-small: var(--line-heigh-normal);
|
|
27
|
-
--table-padding-vertical-small: var(--space-3);
|
|
28
|
-
--table-padding-horizontal-small: var(--space-2);
|
|
29
|
-
--table-row-min-height-small: calc(var(--table-padding-vertical-small) * 2 + var(--table-line-height-small));
|
|
30
|
-
--table-expand-icon-margin-right: var(--space-2);
|
|
31
|
-
--table-expand-icon-size: 18px;
|
|
32
|
-
--table-fixed-left-shadow: inset 10px 0 8px -8px var(--gray-a6);
|
|
33
|
-
--table-fixed-right-shadow: inset -10px 0 8px -8px var(--gray-a6);
|
|
34
|
-
--table-row-hover-background-color: var(--primary-2);
|
|
35
|
-
--table-border-radius: var(--radius-base);
|
|
12
|
+
--table-header-height: var(--space-10);
|
|
13
|
+
--table-header-padding: 0 var(--space-2);
|
|
14
|
+
// row
|
|
15
|
+
--table-row-hover-background-color: var(--color-background-secondary);
|
|
16
|
+
--table-expanded-row-background: var(--color-background-secondary);
|
|
17
|
+
// cell
|
|
18
|
+
--table-cell-padding: var(--space-2) var(--space-2);
|
|
19
|
+
--table-cell-line-height: var(--space-5);
|
|
20
|
+
--table-cell-min-height: var(--space-9);
|
|
36
21
|
}
|
|
37
22
|
}
|