@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.
Files changed (146) hide show
  1. package/es/components/Calendar/Calendar.vue.d.ts +15 -0
  2. package/es/components/Calendar/Header.vue.d.ts +15 -0
  3. package/es/components/Calendar/index.d.ts +30 -0
  4. package/es/components/Radio/Radio.mjs +5 -4
  5. package/es/components/Radio/Radio.mjs.map +1 -1
  6. package/es/components/Radio/Radio.type.d.ts +4 -0
  7. package/es/components/Radio/Radio.type.mjs +4 -0
  8. package/es/components/Radio/Radio.type.mjs.map +1 -1
  9. package/es/components/Radio/Radio.vue.d.ts +9 -0
  10. package/es/components/Radio/index.d.ts +15 -0
  11. package/es/components/Table/BaseTable.mjs +20 -6
  12. package/es/components/Table/BaseTable.mjs.map +1 -1
  13. package/es/components/Table/BaseTable.vue.d.ts +44 -9
  14. package/es/components/Table/BodyTable.vue.d.ts +44 -9
  15. package/es/components/Table/HeadTable.vue.d.ts +44 -9
  16. package/es/components/Table/Table.mjs +8 -9
  17. package/es/components/Table/Table.mjs.map +1 -1
  18. package/es/components/Table/Table.type.d.ts +7 -5
  19. package/es/components/Table/Table.type.mjs.map +1 -1
  20. package/es/components/Table/Table.vue.d.ts +88 -18
  21. package/es/components/Table/TableBox.vue.d.ts +88 -18
  22. package/es/components/Table/hooks/useTableResize.d.ts +1 -1
  23. package/es/components/Table/hooks/useTableResize.mjs +13 -71
  24. package/es/components/Table/hooks/useTableResize.mjs.map +1 -1
  25. package/es/components/Table/tableUnits/ColGroup.mjs +8 -5
  26. package/es/components/Table/tableUnits/ColGroup.mjs.map +1 -1
  27. package/es/components/Table/tableUnits/ExpandIcon.mjs +2 -2
  28. package/es/components/Table/tableUnits/ExpandIcon.mjs.map +1 -1
  29. package/es/components/Table/tableUnits/ExpandIcon.vue.d.ts +3 -3
  30. package/es/components/Table/tableUnits/ExpandRows.mjs.map +1 -1
  31. package/es/components/Table/tableUnits/ExpandRows.vue.d.ts +21 -3
  32. package/es/components/Table/tableUnits/SelectionBox.vue.d.ts +15 -0
  33. package/es/components/Table/tableUnits/TableBody.vue.d.ts +42 -6
  34. package/es/components/Table/tableUnits/TableCell.mjs +108 -95
  35. package/es/components/Table/tableUnits/TableCell.mjs.map +1 -1
  36. package/es/components/Table/tableUnits/TableCell.vue.d.ts +21 -3
  37. package/es/components/Table/tableUnits/TableRow.vue.d.ts +21 -3
  38. package/es/components/Tabs/TabNav.mjs +4 -5
  39. package/es/components/Tabs/TabNav.mjs.map +1 -1
  40. package/es/components/Tabs/TabNav.vue.d.ts +1 -1
  41. package/es/components/Tabs/Tabs.d.ts +1 -1
  42. package/es/components/Tabs/index.d.ts +3 -3
  43. package/es/components/base/ResizeObserver.mjs +1 -1
  44. package/es/components/base/ResizeObserver.mjs.map +1 -1
  45. package/lib/components/Calendar/Calendar.vue.d.ts +15 -0
  46. package/lib/components/Calendar/Header.vue.d.ts +15 -0
  47. package/lib/components/Calendar/index.d.ts +30 -0
  48. package/lib/components/Radio/Radio.js +4 -3
  49. package/lib/components/Radio/Radio.js.map +1 -1
  50. package/lib/components/Radio/Radio.type.d.ts +4 -0
  51. package/lib/components/Radio/Radio.type.js +4 -0
  52. package/lib/components/Radio/Radio.type.js.map +1 -1
  53. package/lib/components/Radio/Radio.vue.d.ts +9 -0
  54. package/lib/components/Radio/index.d.ts +15 -0
  55. package/lib/components/Table/BaseTable.js +20 -6
  56. package/lib/components/Table/BaseTable.js.map +1 -1
  57. package/lib/components/Table/BaseTable.vue.d.ts +44 -9
  58. package/lib/components/Table/BodyTable.vue.d.ts +44 -9
  59. package/lib/components/Table/HeadTable.vue.d.ts +44 -9
  60. package/lib/components/Table/Table.js +7 -8
  61. package/lib/components/Table/Table.js.map +1 -1
  62. package/lib/components/Table/Table.type.d.ts +7 -5
  63. package/lib/components/Table/Table.type.js.map +1 -1
  64. package/lib/components/Table/Table.vue.d.ts +88 -18
  65. package/lib/components/Table/TableBox.vue.d.ts +88 -18
  66. package/lib/components/Table/hooks/useTableResize.d.ts +1 -1
  67. package/lib/components/Table/hooks/useTableResize.js +11 -69
  68. package/lib/components/Table/hooks/useTableResize.js.map +1 -1
  69. package/lib/components/Table/tableUnits/ColGroup.js +8 -5
  70. package/lib/components/Table/tableUnits/ColGroup.js.map +1 -1
  71. package/lib/components/Table/tableUnits/ExpandIcon.js +1 -1
  72. package/lib/components/Table/tableUnits/ExpandIcon.js.map +1 -1
  73. package/lib/components/Table/tableUnits/ExpandIcon.vue.d.ts +3 -3
  74. package/lib/components/Table/tableUnits/ExpandRows.js.map +1 -1
  75. package/lib/components/Table/tableUnits/ExpandRows.vue.d.ts +21 -3
  76. package/lib/components/Table/tableUnits/SelectionBox.vue.d.ts +15 -0
  77. package/lib/components/Table/tableUnits/TableBody.vue.d.ts +42 -6
  78. package/lib/components/Table/tableUnits/TableCell.js +107 -94
  79. package/lib/components/Table/tableUnits/TableCell.js.map +1 -1
  80. package/lib/components/Table/tableUnits/TableCell.vue.d.ts +21 -3
  81. package/lib/components/Table/tableUnits/TableRow.vue.d.ts +21 -3
  82. package/lib/components/Tabs/TabNav.js +3 -4
  83. package/lib/components/Tabs/TabNav.js.map +1 -1
  84. package/lib/components/Tabs/TabNav.vue.d.ts +1 -1
  85. package/lib/components/Tabs/Tabs.d.ts +1 -1
  86. package/lib/components/Tabs/index.d.ts +3 -3
  87. package/lib/components/base/ResizeObserver.js +1 -1
  88. package/lib/components/base/ResizeObserver.js.map +1 -1
  89. package/package.json +1 -1
  90. package/styles/components/alert/index.css +1 -1
  91. package/styles/components/autoComplete/index.css +1 -1
  92. package/styles/components/avatar/index.css +1 -1
  93. package/styles/components/button/index.css +1 -1
  94. package/styles/components/carousel/index.css +1 -1
  95. package/styles/components/cascader/index.css +1 -1
  96. package/styles/components/datePicker/index.css +1 -1
  97. package/styles/components/dropdown/index.css +1 -1
  98. package/styles/components/dropdown/index.less +2 -3
  99. package/styles/components/form/index.css +1 -1
  100. package/styles/components/icon/index.css +1 -1
  101. package/styles/components/input/index.css +1 -1
  102. package/styles/components/inputNumber/index.css +1 -1
  103. package/styles/components/link/index.css +1 -1
  104. package/styles/components/mentions/index.css +1 -1
  105. package/styles/components/modal/index.css +1 -1
  106. package/styles/components/select/index.css +1 -1
  107. package/styles/components/spin/index.css +1 -1
  108. package/styles/components/table/index.css +1 -1
  109. package/styles/components/table/index.less +106 -242
  110. package/styles/components/table/var.less +16 -31
  111. package/styles/components/tabs/borderCard.less +23 -27
  112. package/styles/components/tabs/card.less +18 -37
  113. package/styles/components/tabs/index.css +1 -1
  114. package/styles/components/tabs/index.less +103 -72
  115. package/styles/components/tabs/var.less +16 -71
  116. package/styles/components/timePicker/index.css +1 -1
  117. package/styles/cssVariable.css +1 -1
  118. package/styles/cssVariable.less +1 -1
  119. package/styles/index.css +1 -1
  120. package/types/components/Calendar/Calendar.vue.d.ts +15 -0
  121. package/types/components/Calendar/Header.vue.d.ts +15 -0
  122. package/types/components/Calendar/index.d.ts +30 -0
  123. package/types/components/Radio/Radio.type.d.ts +4 -0
  124. package/types/components/Radio/Radio.vue.d.ts +9 -0
  125. package/types/components/Radio/index.d.ts +15 -0
  126. package/types/components/Table/BaseTable.vue.d.ts +44 -9
  127. package/types/components/Table/BodyTable.vue.d.ts +44 -9
  128. package/types/components/Table/HeadTable.vue.d.ts +44 -9
  129. package/types/components/Table/Table.type.d.ts +7 -5
  130. package/types/components/Table/Table.vue.d.ts +88 -18
  131. package/types/components/Table/TableBox.vue.d.ts +88 -18
  132. package/types/components/Table/hooks/useTableResize.d.ts +1 -1
  133. package/types/components/Table/tableUnits/ExpandIcon.vue.d.ts +3 -3
  134. package/types/components/Table/tableUnits/ExpandRows.vue.d.ts +21 -3
  135. package/types/components/Table/tableUnits/SelectionBox.vue.d.ts +15 -0
  136. package/types/components/Table/tableUnits/TableBody.vue.d.ts +42 -6
  137. package/types/components/Table/tableUnits/TableCell.vue.d.ts +21 -3
  138. package/types/components/Table/tableUnits/TableRow.vue.d.ts +21 -3
  139. package/types/components/Tabs/TabNav.vue.d.ts +1 -1
  140. package/types/components/Tabs/Tabs.d.ts +1 -1
  141. package/types/components/Tabs/index.d.ts +3 -3
  142. package/uxd-ui.css +1 -1
  143. package/uxd-ui.esm.min.mjs +6 -6
  144. package/uxd-ui.esm.mjs +164 -191
  145. package/uxd-ui.umd.js +164 -191
  146. 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(--table-background-color);
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
- box-shadow: var(--table-row-box-shadow);
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
- // &-thead > tr:not(:last-child) > th {
51
- // &[colspan] {
52
- // border-bottom: 0;
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
- box-shadow: var(--table-row-box-shadow);
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
- width: var(--table-expand-icon-size);
101
- height: var(--table-expand-icon-size);
93
+ align-items: center;
94
+ width: var(--icon-font-size);
95
+ height: var(--icon-font-size);
102
96
  line-height: 1;
103
- color: inherit;
104
- background: var(--table-background-color);
105
- border: var(--border-width-base) var(--border-style-base) var(--color-border-split);
106
- border-radius: var(--radius-1);
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
- border-color: currentcolor;
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(--table-expand-icon-size);
130
- height: var(--table-expand-icon-size);
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(--table-expand-icon-margin-right);
176
+ margin-right: var(--space-1);
181
177
  }
182
178
 
183
179
  tr&-summary-row {
184
180
  td {
185
- background: var(--table-header-background);
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(--table-background-color);
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-padding-vertical-large) var(--table-padding-horizontal-large);
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(--table-background-color);
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: var(--border-width-base) var(--border-style-base) var(--table-border-color);
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: var(--border-width-base) var(--border-style-base) var(--table-border-color);
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
- box-shadow: var(--table-border-cell-box-shadow);
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
- --table-border-cell-box-shadow: -1px 0 0 0 var(--table-border-color) inset;
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(--table-background-color);
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(--table-background-color);
411
- border-radius: var(--radius-base);
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(--table-header-icon-color);
354
+ color: var(--icon-button-color);
425
355
  transition: all 0.3s;
426
356
 
427
357
  &:hover {
428
- color: var(--gray-a9);
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: 0;
384
+ top: 50%;
455
385
  right: 0;
456
- width: 28px;
457
- height: 100%;
458
- color: var(--table-header-icon-color);
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(--gray-a9);
466
- background: var(--table-header-filter-active-background);
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
- margin-left: calc(var(--default-font-size) / -2);
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
- &:active {
489
- color: var(--gray-a11);
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: table;
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: table-cell;
504
- vertical-align: middle;
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: table-cell;
513
- vertical-align: middle;
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(--table-header-icon-color);
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(--primary-color);
455
+ color: var(--default-font-color);
534
456
  }
535
457
  }
536
458
 
@@ -548,57 +470,48 @@
548
470
  }
549
471
  }
550
472
 
551
- &::before {
552
- position: absolute;
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
- &:hover {
569
- background: var(--table-header-sort-active-background);
570
-
571
- .@{table-prefix-cls}-filter-icon {
572
- background: var(--table-header-sort-active-background);
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
- &:active {
577
- .@{table-prefix-cls}-column-sorter-up:not(.on),
578
- .@{table-prefix-cls}-column-sorter-down:not(.on) {
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(--table-header-sort-background);
497
+ background: var(--color-background);
587
498
  }
588
499
 
589
500
  &-thead > tr > th &-column-tips-icon {
590
- margin-left: var(--table-header-tips-margin);
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(--table-body-sort-background);
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(--table-row-hover-background);
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(--link-color);
665
-
666
- &:hover {
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
- color: var(--link-active-color);
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(--table-header-background);
632
+ background-color: var(--color-background-secondary);
720
633
 
721
634
  td {
722
- background-color: var(--table-header-background);
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
- .table-size(var(--table-padding-vertical-large), var(--table-padding-horizontal-large), var(--font-size-base), var(--table-line-height-large), var(--table-row-min-height-large));
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
- .table-size(var(--table-padding-vertical-small), var(--table-padding-horizontal-small), var(--font-size-xs), var(--table-line-height-small), var(--table-row-min-height-small));
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(--table-pagination-margin-base);
694
+ margin-top: var(--space-2);
831
695
  }
832
696
 
833
697
  &-top {
834
- margin-bottom: var(--table-pagination-margin-base);
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
- --table-background-color: var(--color-background);
4
- --table-header-background: var(--gray-2);
3
+ //wrapper
5
4
  --table-border-color: var(--color-border-split);
6
- --table-row-box-shadow: 0 -1px 0 0 var(--table-border-color) inset;
7
- --table-border-cell-box-shadow: 0 -1px 0 0 var(--table-border-color) inset, -1px 0 0 0 var(--table-border-color) inset;
8
- --table-expanded-row-background: var(--gray-1);
9
- --table-body-sort-background: var(--gray-2);
10
- --table-header-sort-background: var(--gray-3);
11
- --table-header-sort-active-background: var(--gray-4);
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-tips-margin: var(--space-1);
17
- --table-pagination-margin-base: var(--space-2);
18
- --table-line-height: var(--line-heigh-normal);
19
- --table-padding-vertical: 14px;
20
- --table-padding-horizontal: var(--space-2);
21
- --table-row-min-height: calc(var(--table-padding-vertical) * 2 + var(--table-line-height));
22
- --table-line-height-large: var(--line-height-normal);
23
- --table-padding-vertical-large: var(--space-4);
24
- --table-padding-horizontal-large: var(--space-3);
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
  }