adtec-core-package 1.2.4 → 1.2.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 (190) hide show
  1. package/README.en.md +36 -36
  2. package/eslint.config.js +11 -21
  3. package/package.json +66 -64
  4. package/src/api/BasicApi.ts +26 -26
  5. package/src/api/DeptInfoApi.ts +19 -19
  6. package/src/api/DocumentApi.ts +27 -27
  7. package/src/api/EmployeeInfoApi.ts +17 -17
  8. package/src/api/SysDictCacheApi.ts +29 -29
  9. package/src/api/SysUserApi.ts +35 -35
  10. package/src/api/framework.ts +12 -12
  11. package/src/api/workflow/workflow.ts +31 -31
  12. package/src/api/workflow/workflowInstApi.ts +72 -72
  13. package/src/assets/style/ant.scss +19 -19
  14. package/src/assets/style/index.less +180 -180
  15. package/src/components/ElFlex/ElFlex.vue +297 -297
  16. package/src/components/ElTotalTools.vue +70 -70
  17. package/src/components/OperationAuth/operationAuth.vue +26 -26
  18. package/src/components/RichTextEditor/RichTextEditor.vue +144 -144
  19. package/src/components/Scrollbars/ElScrollbars.vue +21 -21
  20. package/src/components/Search/ElIconSearch.vue +267 -267
  21. package/src/components/Search/ElSearch.vue +154 -154
  22. package/src/components/SelectInDicators/SelectInDicators.vue +225 -225
  23. package/src/components/SelectInDicators/api/DataIndicatorsApi.ts +28 -28
  24. package/src/components/SelectInDicators/interface/IComIndex.ts +26 -26
  25. package/src/components/SelectInDicators/interface/IComIndexAttri.ts +18 -18
  26. package/src/components/Table/ElTableColumnDynamic.vue +25 -25
  27. package/src/components/Table/ElTableColumnEdit.vue +264 -263
  28. package/src/components/Table/ElTableTool.ts +37 -37
  29. package/src/components/Title/ElTitle.vue +53 -53
  30. package/src/components/autoToolTip/ElAutoToolTip.vue +62 -62
  31. package/src/components/baseEcharts/index.vue +48 -48
  32. package/src/components/bpmntree/api/modules/role.ts +31 -31
  33. package/src/components/bpmntree/api/modules/user.ts +17 -17
  34. package/src/components/bpmntree/components/AdvancedFilter/Operator.vue +112 -112
  35. package/src/components/bpmntree/components/AdvancedFilter/Trigger.vue +23 -23
  36. package/src/components/bpmntree/components/AdvancedFilter/index.vue +230 -230
  37. package/src/components/bpmntree/components/AdvancedFilter/type.ts +20 -20
  38. package/src/components/bpmntree/components/FlowIcon/index.scss +7 -7
  39. package/src/components/bpmntree/components/FlowIcon/index.tsx +68 -68
  40. package/src/components/bpmntree/components/Render/render.vue +90 -90
  41. package/src/components/bpmntree/components/Render/type.ts +12 -12
  42. package/src/components/bpmntree/components/RoleSelector/RolePicker.vue +264 -264
  43. package/src/components/bpmntree/components/RoleSelector/RoleTag.vue +48 -48
  44. package/src/components/bpmntree/components/RoleSelector/index.vue +113 -113
  45. package/src/components/bpmntree/components/UserSelector/UserTag.vue +73 -73
  46. package/src/components/bpmntree/components/UserSelector/index.vue +140 -140
  47. package/src/components/bpmntree/hooks/useDraggableScroll.ts +44 -44
  48. package/src/components/bpmntree/typings/index.d.ts +1 -1
  49. package/src/components/bpmntree/views/flowDesign/index.vue +652 -652
  50. package/src/components/bpmntree/views/flowDesign/nodes/Add.vue +184 -184
  51. package/src/components/bpmntree/views/flowDesign/nodes/ApprovalNode.vue +127 -127
  52. package/src/components/bpmntree/views/flowDesign/nodes/CcNode.vue +93 -93
  53. package/src/components/bpmntree/views/flowDesign/nodes/ConcurrentNode.vue +61 -61
  54. package/src/components/bpmntree/views/flowDesign/nodes/ConditionNode.vue +59 -59
  55. package/src/components/bpmntree/views/flowDesign/nodes/EndNode.vue +80 -80
  56. package/src/components/bpmntree/views/flowDesign/nodes/ExclusiveNode.vue +20 -20
  57. package/src/components/bpmntree/views/flowDesign/nodes/GatewayNode.vue +173 -173
  58. package/src/components/bpmntree/views/flowDesign/nodes/InclusiveNode.vue +20 -20
  59. package/src/components/bpmntree/views/flowDesign/nodes/JumpNode.vue +49 -49
  60. package/src/components/bpmntree/views/flowDesign/nodes/Node.vue +346 -346
  61. package/src/components/bpmntree/views/flowDesign/nodes/NotifyNode.vue +115 -115
  62. package/src/components/bpmntree/views/flowDesign/nodes/ParallelNode.vue +20 -20
  63. package/src/components/bpmntree/views/flowDesign/nodes/PopoverView.vue +78 -78
  64. package/src/components/bpmntree/views/flowDesign/nodes/StartNode.vue +84 -84
  65. package/src/components/bpmntree/views/flowDesign/nodes/TimerNode.vue +50 -50
  66. package/src/components/bpmntree/views/flowDesign/nodes/TreeNode.vue +45 -45
  67. package/src/components/bpmntree/views/flowDesign/nodes/type.ts +192 -192
  68. package/src/components/bpmntree/views/flowDesign/panels/ApprovalPanel.vue +516 -516
  69. package/src/components/bpmntree/views/flowDesign/panels/AssigneePanel.vue +120 -120
  70. package/src/components/bpmntree/views/flowDesign/panels/CcPanel.vue +99 -99
  71. package/src/components/bpmntree/views/flowDesign/panels/ConditionPanel.vue +41 -41
  72. package/src/components/bpmntree/views/flowDesign/panels/EndPanel.vue +18 -18
  73. package/src/components/bpmntree/views/flowDesign/panels/ExecutionListeners.vue +110 -110
  74. package/src/components/bpmntree/views/flowDesign/panels/JumpPanel.vue +32 -32
  75. package/src/components/bpmntree/views/flowDesign/panels/NotifyPanel.vue +101 -101
  76. package/src/components/bpmntree/views/flowDesign/panels/ParaPanel.vue +248 -248
  77. package/src/components/bpmntree/views/flowDesign/panels/StartPanel.vue +159 -159
  78. package/src/components/bpmntree/views/flowDesign/panels/TaskListeners.vue +110 -110
  79. package/src/components/bpmntree/views/flowDesign/panels/TimerPanel.vue +51 -51
  80. package/src/components/bpmntree/views/flowDesign/panels/index.vue +85 -85
  81. package/src/components/bpmntree/views/view.index.vue +291 -291
  82. package/src/components/business/comp.userForm.vue +292 -286
  83. package/src/components/business/userSelect.vue +413 -413
  84. package/src/components/icon/ElIconBtn.vue +210 -210
  85. package/src/components/upload/ElUploads.vue +285 -285
  86. package/src/components/upload/FileView.vue +159 -159
  87. package/src/components/upload/FileViewComponents.vue +56 -56
  88. package/src/components/workflow/TaskOperation.vue +212 -212
  89. package/src/components/workflow/WorkflowTodoDialog.vue +81 -81
  90. package/src/components/workflow/components/AddOrMinusMultiDialog.vue +159 -159
  91. package/src/components/workflow/components/CheckDialog.vue +315 -316
  92. package/src/components/workflow/components/ProcessDetailComp.vue +133 -133
  93. package/src/components/workflow/components/ProcessDetailDialog.vue +129 -129
  94. package/src/components/workflow/components/ProcessInstance.vue +117 -117
  95. package/src/components/workflow/components/ProcessInstanceStep.vue +226 -226
  96. package/src/components/workflow/components/SelectAssigneeDialog.vue +109 -109
  97. package/src/components/workflow/components/SelectReturnActivityDialog.vue +104 -104
  98. package/src/config/ElementPlusConfig.ts +95 -95
  99. package/src/config/VxeTableConfig.ts +35 -0
  100. package/src/css/elementUI/autocomplete.scss +89 -89
  101. package/src/css/elementUI/common/var.scss +1549 -1549
  102. package/src/css/elementUI/date-picker/picker.scss +219 -219
  103. package/src/css/elementUI/descriptions.scss +152 -152
  104. package/src/css/elementUI/drawer.scss +164 -164
  105. package/src/css/elementUI/table.scss +694 -694
  106. package/src/css/elementUI/tabs.scss +659 -659
  107. package/src/css/vxeTableUI/all.scss +7 -0
  108. package/src/css/vxeTableUI/base.scss +16 -0
  109. package/src/css/vxeTableUI/components/colgroup.scss +0 -0
  110. package/src/css/vxeTableUI/components/column.scss +0 -0
  111. package/src/css/vxeTableUI/components/grid.scss +83 -0
  112. package/src/css/vxeTableUI/components/icon.scss +205 -0
  113. package/src/css/vxeTableUI/components/old-icon.scss +715 -0
  114. package/src/css/vxeTableUI/components/table-module/all.scss +7 -0
  115. package/src/css/vxeTableUI/components/table-module/custom.scss +491 -0
  116. package/src/css/vxeTableUI/components/table-module/edit.scss +0 -0
  117. package/src/css/vxeTableUI/components/table-module/export.scss +130 -0
  118. package/src/css/vxeTableUI/components/table-module/filter.scss +128 -0
  119. package/src/css/vxeTableUI/components/table-module/keyboard.scss +0 -0
  120. package/src/css/vxeTableUI/components/table-module/menu.scss +86 -0
  121. package/src/css/vxeTableUI/components/table-module/validator.scss +0 -0
  122. package/src/css/vxeTableUI/components/table.scss +2242 -0
  123. package/src/css/vxeTableUI/components/toolbar.scss +100 -0
  124. package/src/css/vxeTableUI/components/ui.scss +0 -0
  125. package/src/css/vxeTableUI/components/v-x-e-table.scss +0 -0
  126. package/src/css/vxeTableUI/cssvar.scss +3 -0
  127. package/src/css/vxeTableUI/default.scss +3 -0
  128. package/src/css/vxeTableUI/helpers/baseMixin.scss +82 -0
  129. package/src/css/vxeTableUI/icon/iconfont.ttf +0 -0
  130. package/src/css/vxeTableUI/icon/iconfont.woff +0 -0
  131. package/src/css/vxeTableUI/icon/iconfont.woff2 +0 -0
  132. package/src/css/vxeTableUI/index.scss +4 -0
  133. package/src/css/vxeTableUI/modules.scss +5 -0
  134. package/src/css/vxeTableUI/theme/base.scss +89 -0
  135. package/src/css/vxeTableUI/theme/dark.scss +46 -0
  136. package/src/css/vxeTableUI/theme/light.scss +42 -0
  137. package/src/css/vxeTableUI/variable.scss +41 -0
  138. package/src/directives/vKeydown.ts +91 -91
  139. package/src/hooks/useDictHooks.ts +119 -119
  140. package/src/hooks/useEcharts.ts +58 -58
  141. package/src/hooks/useFileView.ts +34 -11
  142. package/src/hooks/useMessageHooks.ts +132 -132
  143. package/src/hooks/usePermissionToolHooks.ts +21 -21
  144. package/src/hooks/useResetRefHooks.ts +18 -18
  145. package/src/hooks/userWorkflowHooks.ts +92 -92
  146. package/src/interface/BaseEntity.ts +30 -30
  147. package/src/interface/IMdmDept.ts +84 -84
  148. package/src/interface/IMdmEmployee.ts +134 -134
  149. package/src/interface/IMdmEmployeeQuery.ts +20 -19
  150. package/src/interface/IMdmOrg.ts +29 -29
  151. package/src/interface/IMdmOrgQuery.ts +13 -13
  152. package/src/interface/IOrgDeptInfo.ts +12 -12
  153. package/src/interface/ISysDictDataCacheVo.ts +46 -46
  154. package/src/interface/ISysDictType.ts +37 -37
  155. package/src/interface/ISysMenuDataVo.ts +22 -22
  156. package/src/interface/ISysMenuInfoVo.ts +83 -83
  157. package/src/interface/ISysMenuOperationVo.ts +21 -21
  158. package/src/interface/ISysUploadFiles.ts +16 -16
  159. package/src/interface/ISysUserInfo.ts +70 -70
  160. package/src/interface/IUserPermissionVo.ts +34 -34
  161. package/src/interface/Message.ts +73 -73
  162. package/src/interface/PageData.ts +17 -17
  163. package/src/interface/ResponseData.ts +16 -16
  164. package/src/interface/dictMapType.ts +11 -11
  165. package/src/interface/enum/MessageEnum.ts +41 -41
  166. package/src/interface/workflow/IWfProcessDefVo.ts +14 -14
  167. package/src/interface/workflow/IWfReturnNodeVo.ts +15 -16
  168. package/src/interface/workflow/IWfTaskAskVo.ts +61 -65
  169. package/src/interface/workflow/IWfTaskQueryVo.ts +30 -30
  170. package/src/interface/workflow/IWfTaskUsersVo.ts +21 -21
  171. package/src/interface/workflow/IWfTaskVo.ts +187 -187
  172. package/src/interface/workflow/workflow.ts +22 -22
  173. package/src/mixin/globalMixin.ts +45 -45
  174. package/src/packages/index.ts +18 -18
  175. package/src/packages/text.vue +13 -13
  176. package/src/plugins/echartsConfig.ts +73 -73
  177. package/src/plugins/plugins.ts +12 -12
  178. package/src/plugins/renderDialog.ts +74 -74
  179. package/src/stores/dictStore.ts +51 -51
  180. package/src/stores/messageStore.ts +49 -49
  181. package/src/stores/permissionStore.ts +108 -108
  182. package/src/stores/storeConfig.ts +23 -23
  183. package/src/stores/userInfoStore.ts +31 -31
  184. package/src/utils/AxiosConfig.ts +219 -219
  185. package/src/utils/modules.ts +8 -8
  186. package/src/utils/request.ts +76 -76
  187. package/adtec-core-package/adtec-core-package.css +0 -1
  188. package/adtec-core-package/adtec-core-package.js +0 -41605
  189. package/adtec-core-package/adtec-core-package.umd.cjs +0 -79
  190. package/adtec-core-package/favicon.ico +0 -0
@@ -1,694 +1,694 @@
1
- @use 'sass:map';
2
-
3
- @use 'mixins/mixins' as *;
4
- @use 'mixins/var' as *;
5
- @use 'common/var' as *;
6
-
7
- @include b(table) {
8
- @include set-component-css-var('table', $table);
9
- }
10
-
11
- @include b(table) {
12
- position: relative;
13
- overflow: hidden;
14
- box-sizing: border-box;
15
- height: fit-content;
16
- width: 100%;
17
- max-width: 100%;
18
- background-color: getCssVar('table-bg-color');
19
- font-size: 14px;
20
- color: getCssVar('table-text-color');
21
-
22
- @include e(inner-wrapper) {
23
- position: relative;
24
- display: flex;
25
- flex-direction: column;
26
- height: 100%;
27
-
28
- // 表格底部伪 border,总是有的
29
- &::before {
30
- @include extend-rule(border-pseudo);
31
- left: 0;
32
- bottom: 0;
33
- height: 1px;
34
- }
35
- }
36
-
37
- tbody {
38
- &:focus-visible {
39
- outline: none;
40
- }
41
- }
42
-
43
- &.has-footer {
44
- &.#{$namespace}-table--scrollable-y,
45
- &.#{$namespace}-table--fluid-height {
46
- tr:last-child td.#{$namespace}-table__cell {
47
- border-bottom-color: transparent;
48
- }
49
- }
50
- }
51
-
52
- // when data is empty
53
- @include e(empty-block) {
54
- position: sticky;
55
- left: 0;
56
- min-height: 60px;
57
- text-align: center;
58
- width: 100%;
59
- display: flex;
60
- justify-content: center;
61
- align-items: center;
62
- }
63
-
64
- @include e(empty-text) {
65
- // min-height doesn't work in IE10 and IE11 https://github.com/philipwalton/flexbugs#3-min-height-on-a-flex-container-wont-apply-to-its-flex-items
66
- // set empty text line height up to contrainer min-height as workaround.
67
- line-height: 60px;
68
- width: 50%;
69
- color: getCssVar('text-color', 'secondary');
70
- }
71
-
72
- // expand the row
73
- @include e(expand-column) {
74
- .cell {
75
- padding: 0;
76
- text-align: center;
77
- user-select: none;
78
- }
79
- }
80
-
81
- @include e(expand-icon) {
82
- position: relative;
83
- cursor: pointer;
84
- color: getCssVar('text-color', 'regular');
85
- font-size: 12px;
86
- transition: transform getCssVar('transition-duration-fast') ease-in-out;
87
- //height: 40px;
88
-
89
- @include m(expanded) {
90
- transform: rotate(90deg);
91
- }
92
-
93
- > .#{$namespace}-icon {
94
- font-size: 12px;
95
- }
96
- }
97
-
98
- @include e(expanded-cell) {
99
- background-color: getCssVar('table-expanded-cell-bg-color');
100
-
101
- // increase the weight purely
102
- &[class*='cell'] {
103
- padding: 20px 50px;
104
- }
105
-
106
- &:hover {
107
- background-color: transparent !important;
108
- }
109
- }
110
-
111
- @include e(placeholder) {
112
- display: inline-block;
113
- width: 20px;
114
- }
115
-
116
- @include e(append-wrapper) {
117
- // avoid overlapping margin https://developer.mozilla.org/zh-CN/docs/Web/CSS/CSS_Box_Model/Mastering_margin_collapsing
118
- overflow: hidden;
119
- }
120
-
121
- @include m(fit) {
122
- border-right: 0;
123
- border-bottom: 0;
124
-
125
- .#{$namespace}-table__cell.gutter {
126
- border-right-width: 1px;
127
- }
128
-
129
- @include e(inner-wrapper) {
130
- &::before {
131
- width: 100%;
132
- }
133
- }
134
- }
135
-
136
- thead {
137
- color: getCssVar('table-header-text-color');
138
-
139
- th {
140
- font-weight: 500;
141
- }
142
-
143
- &.is-group {
144
- th.#{$namespace}-table__cell {
145
- background: getCssVar('fill-color', 'light');
146
- }
147
- }
148
- }
149
-
150
- .#{$namespace}-table__cell {
151
- padding: map.get($table-padding, 'default');
152
- min-width: 0;
153
- box-sizing: border-box;
154
- text-overflow: ellipsis;
155
- vertical-align: middle;
156
- position: relative;
157
- text-align: left;
158
- z-index: getCssVar('table-index');
159
-
160
- @include when(center) {
161
- text-align: center;
162
- }
163
-
164
- @include when(right) {
165
- text-align: right;
166
- }
167
-
168
- &.gutter {
169
- width: 15px;
170
- border-right-width: 0;
171
- border-bottom-width: 0;
172
- padding: 0;
173
- }
174
-
175
- &.is-hidden {
176
- > * {
177
- visibility: hidden;
178
- }
179
- }
180
- }
181
-
182
- .cell {
183
- box-sizing: border-box;
184
- overflow: hidden;
185
- text-overflow: ellipsis;
186
- white-space: normal;
187
- overflow-wrap: break-word;
188
- line-height: 40px;
189
- padding: 0 12px;
190
- align-items: center;
191
- &.#{$namespace}-tooltip {
192
- white-space: nowrap;
193
- min-width: 50px;
194
- }
195
- }
196
-
197
- @each $size in (large, default, small) {
198
- @include m($size) {
199
- font-size: map.get($table-font-size, $size);
200
-
201
- .#{$namespace}-table__cell {
202
- padding: map.get($table-padding, $size);
203
- }
204
-
205
- .cell {
206
- padding: map.get($table-cell-padding, $size);
207
- }
208
- }
209
- }
210
-
211
- tr {
212
- background-color: getCssVar('table-tr-bg-color');
213
-
214
- input[type='checkbox'] {
215
- margin: 0;
216
- }
217
- }
218
-
219
- th.#{$namespace}-table__cell.is-leaf,
220
- td.#{$namespace}-table__cell {
221
- border-bottom: getCssVar('table-border');
222
- }
223
-
224
- th.#{$namespace}-table__cell.is-sortable {
225
- cursor: pointer;
226
- }
227
-
228
- th.#{$namespace}-table__cell {
229
- background-color: getCssVar('table-header-bg-color');
230
-
231
- > .cell.highlight {
232
- color: getCssVar('color-primary');
233
- }
234
-
235
- &.required > div::before {
236
- display: inline-block;
237
- content: '';
238
- width: 8px;
239
- height: 8px;
240
- border-radius: 50%;
241
- background: #ff4d51;
242
- margin-right: 5px;
243
- vertical-align: middle;
244
- }
245
- }
246
-
247
- td.#{$namespace}-table__cell {
248
- div {
249
- box-sizing: border-box;
250
- }
251
-
252
- &.gutter {
253
- width: 0;
254
- }
255
- }
256
-
257
- // 拥有多级表头
258
- @include m((group, border)) {
259
- @include share-rule(border-pseudo) {
260
- content: '';
261
- position: absolute;
262
- background-color: getCssVar('table-border-color');
263
- z-index: calc(getCssVar('table-index') + 2);
264
- }
265
- }
266
-
267
- // table--border
268
- @include m(border) {
269
- @include e(inner-wrapper) {
270
- &::after {
271
- @include extend-rule(border-pseudo);
272
- left: 0;
273
- top: 0;
274
- width: 100%;
275
- height: 1px;
276
- z-index: calc(getCssVar('table-index') + 2);
277
- }
278
- }
279
-
280
- &::before {
281
- @include extend-rule(border-pseudo);
282
- top: -1px;
283
- left: 0;
284
- width: 1px;
285
- height: 100%;
286
- }
287
-
288
- &::after {
289
- @include extend-rule(border-pseudo);
290
- top: -1px;
291
- right: 0;
292
- width: 1px;
293
- height: 100%;
294
- }
295
-
296
- @include e(inner-wrapper) {
297
- border-right: none;
298
- border-bottom: none;
299
- }
300
-
301
- @include e(footer-wrapper) {
302
- position: relative;
303
- flex-shrink: 0;
304
- }
305
-
306
- .#{$namespace}-table__cell {
307
- border-right: getCssVar('table-border');
308
- }
309
-
310
- th.#{$namespace}-table__cell.gutter:last-of-type {
311
- border-bottom: getCssVar('table-border');
312
- border-bottom-width: 1px;
313
- }
314
-
315
- & th.#{$namespace}-table__cell {
316
- border-bottom: getCssVar('table-border');
317
- }
318
- }
319
-
320
- @include m(hidden) {
321
- visibility: hidden;
322
- }
323
-
324
- @include e((header-wrapper, body-wrapper, footer-wrapper)) {
325
- width: 100%;
326
-
327
- tr {
328
- td,
329
- th {
330
- &.#{$namespace}-table-fixed-column--left,
331
- &.#{$namespace}-table-fixed-column--right {
332
- position: sticky !important;
333
- background: inherit;
334
- z-index: calc(getCssVar('table-index') + 1);
335
-
336
- &.is-last-column,
337
- &.is-first-column {
338
- &::before {
339
- content: '';
340
- position: absolute;
341
- top: 0px;
342
- width: 10px;
343
- bottom: -1px;
344
- overflow-x: hidden;
345
- overflow-y: hidden;
346
- box-shadow: none;
347
- touch-action: none;
348
- pointer-events: none;
349
- }
350
- }
351
-
352
- &.is-first-column {
353
- &::before {
354
- left: -10px;
355
- }
356
- }
357
-
358
- &.is-last-column {
359
- &::before {
360
- right: -10px;
361
- box-shadow: none;
362
- }
363
- }
364
- }
365
-
366
- &.#{$namespace}-table__fixed-right-patch {
367
- position: sticky !important;
368
- z-index: calc(getCssVar('table-index') + 1);
369
- background: #fff;
370
- right: 0;
371
- }
372
- }
373
- }
374
- }
375
-
376
- @include e(header-wrapper) {
377
- flex-shrink: 0;
378
-
379
- tr {
380
- th {
381
- &.#{$namespace}-table-fixed-column--left,
382
- &.#{$namespace}-table-fixed-column--right {
383
- background-color: getCssVar('table-header-bg-color');
384
- }
385
- }
386
- }
387
- }
388
-
389
- @include e((header, body, footer)) {
390
- table-layout: fixed;
391
- border-collapse: separate;
392
- }
393
-
394
- @include e((header-wrapper)) {
395
- overflow: hidden;
396
-
397
- & tbody td.#{$namespace}-table__cell {
398
- background-color: getCssVar('table-row-hover-bg-color');
399
- color: getCssVar('table-text-color');
400
- }
401
- }
402
-
403
- @include e((footer-wrapper)) {
404
- overflow: hidden;
405
- flex-shrink: 0;
406
-
407
- tfoot td.#{$namespace}-table__cell {
408
- background-color: getCssVar('table-row-hover-bg-color');
409
- color: getCssVar('table-text-color');
410
- }
411
- }
412
-
413
- @include e((header-wrapper, body-wrapper)) {
414
- .#{$namespace}-table-column--selection {
415
- > .cell {
416
- display: inline-flex;
417
- align-items: center;
418
- height: 23px;
419
- }
420
-
421
- .#{$namespace}-checkbox {
422
- height: unset;
423
- }
424
- }
425
- }
426
-
427
- @include when(scrolling-left) {
428
- .#{$namespace}-table-fixed-column--right.is-first-column {
429
- &::before {
430
- box-shadow: getCssVar('table-fixed-right-column');
431
- }
432
- }
433
-
434
- &.#{$namespace}-table--border {
435
- .#{$namespace}-table-fixed-column--left {
436
- &.is-last-column {
437
- &.#{$namespace}-table__cell {
438
- border-right: getCssVar('table-border');
439
- }
440
- }
441
- }
442
- }
443
-
444
- th.#{$namespace}-table-fixed-column--left {
445
- background-color: getCssVar('table-header-bg-color');
446
- }
447
- }
448
-
449
- @include when(scrolling-right) {
450
- .#{$namespace}-table-fixed-column--left.is-last-column {
451
- &::before {
452
- box-shadow: getCssVar('table-fixed-left-column');
453
- }
454
- }
455
-
456
- .#{$namespace}-table-fixed-column--left.is-last-column.#{$namespace}-table__cell {
457
- border-right: none;
458
- }
459
-
460
- th.#{$namespace}-table-fixed-column--right {
461
- background-color: getCssVar('table-header-bg-color');
462
- }
463
- }
464
-
465
- @include when(scrolling-middle) {
466
- .#{$namespace}-table-fixed-column--left.is-last-column.#{$namespace}-table__cell {
467
- border-right: none;
468
- }
469
-
470
- .#{$namespace}-table-fixed-column--right.is-first-column {
471
- &::before {
472
- box-shadow: getCssVar('table-fixed-right-column');
473
- }
474
- }
475
-
476
- .#{$namespace}-table-fixed-column--left.is-last-column {
477
- &::before {
478
- box-shadow: getCssVar('table-fixed-left-column');
479
- }
480
- }
481
- }
482
-
483
- @include when(scrolling-none) {
484
- .#{$namespace}-table-fixed-column--left,
485
- .#{$namespace}-table-fixed-column--right {
486
- &.is-first-column,
487
- &.is-last-column {
488
- &::before {
489
- box-shadow: none;
490
- }
491
- }
492
- }
493
-
494
- th.#{$namespace}-table-fixed-column--left,
495
- th.#{$namespace}-table-fixed-column--right {
496
- background-color: getCssVar('table-header-bg-color');
497
- }
498
- }
499
-
500
- @include e(body-wrapper) {
501
- overflow: hidden;
502
- position: relative;
503
- flex: 1;
504
-
505
- .#{$namespace}-scrollbar__bar {
506
- z-index: calc(getCssVar('table-index') + 2);
507
- }
508
- }
509
-
510
- .caret-wrapper {
511
- display: inline-flex;
512
- flex-direction: column;
513
- align-items: center;
514
- height: 14px;
515
- width: 24px;
516
- vertical-align: middle;
517
- cursor: pointer;
518
- overflow: initial;
519
- position: relative;
520
- }
521
-
522
- .sort-caret {
523
- width: 0;
524
- height: 0;
525
- border: solid 5px transparent;
526
- position: absolute;
527
- left: 7px;
528
-
529
- &.ascending {
530
- border-bottom-color: getCssVar('text-color', 'placeholder');
531
- top: -5px;
532
- }
533
-
534
- &.descending {
535
- border-top-color: getCssVar('text-color', 'placeholder');
536
- bottom: -3px;
537
- }
538
- }
539
-
540
- .ascending .sort-caret.ascending {
541
- border-bottom-color: getCssVar('color-primary');
542
- }
543
-
544
- .descending .sort-caret.descending {
545
- border-top-color: getCssVar('color-primary');
546
- }
547
-
548
- .hidden-columns {
549
- visibility: hidden;
550
- position: absolute;
551
- z-index: -1;
552
- }
553
-
554
- @include m(striped) {
555
- & .#{$namespace}-table__body {
556
- & tr.#{$namespace}-table__row--striped {
557
- td.#{$namespace}-table__cell {
558
- background: getCssVar('fill-color', 'lighter');
559
- }
560
-
561
- &.current-row td.#{$namespace}-table__cell {
562
- background-color: getCssVar('table-current-row-bg-color');
563
- }
564
- }
565
- }
566
- }
567
-
568
- @include e(body) {
569
- tr.hover-row {
570
- &,
571
- &.#{$namespace}-table__row--striped {
572
- &,
573
- &.current-row {
574
- > td.#{$namespace}-table__cell {
575
- background-color: getCssVar('table-row-hover-bg-color');
576
- }
577
- }
578
- }
579
- }
580
-
581
- tr > td.hover-cell {
582
- background-color: getCssVar('table-row-hover-bg-color');
583
- }
584
-
585
- tr.current-row > td.#{$namespace}-table__cell {
586
- background-color: getCssVar('table-current-row-bg-color');
587
- }
588
- }
589
-
590
- &.#{$namespace}-table--scrollable-y {
591
- @include e(body-header) {
592
- position: sticky;
593
- top: 0;
594
- z-index: calc(getCssVar('table-index') + 2);
595
- }
596
-
597
- @include e(body-footer) {
598
- position: sticky;
599
- bottom: 0;
600
- z-index: calc(getCssVar('table-index') + 2);
601
- }
602
- }
603
-
604
- @include e(column-resize-proxy) {
605
- position: absolute;
606
- left: 200px;
607
- top: 0;
608
- bottom: 0;
609
- width: 0;
610
- border-left: getCssVar('table-border');
611
- z-index: calc(getCssVar('table-index') + 9);
612
- }
613
-
614
- @include e(column-filter-trigger) {
615
- display: inline-block;
616
- cursor: pointer;
617
-
618
- & i {
619
- color: getCssVar('color-info');
620
- font-size: 14px;
621
- vertical-align: middle;
622
- }
623
- }
624
-
625
- @include e(border-left-patch) {
626
- top: 0;
627
- left: 0;
628
- width: 1px;
629
- height: 100%;
630
- z-index: calc(getCssVar('table-index') + 2);
631
- position: absolute;
632
- background-color: getCssVar('table-border-color');
633
- }
634
-
635
- @include e(border-bottom-patch) {
636
- left: 0;
637
- height: 1px;
638
- z-index: calc(getCssVar('table-index') + 2);
639
- position: absolute;
640
- background-color: getCssVar('table-border-color');
641
- }
642
-
643
- @include e(border-right-patch) {
644
- top: 0;
645
- height: 100%;
646
- width: 1px;
647
- z-index: calc(getCssVar('table-index') + 2);
648
- position: absolute;
649
- background-color: getCssVar('table-border-color');
650
- }
651
-
652
- @include m(enable-row-transition) {
653
- .#{$namespace}-table__body td.#{$namespace}-table__cell {
654
- transition: background-color 0.25s ease;
655
- }
656
- }
657
-
658
- @include m(enable-row-hover) {
659
- .#{$namespace}-table__body tr:not(.current-row):hover > td.#{$namespace}-table__cell {
660
- background-color: getCssVar('table-row-hover-bg-color');
661
- }
662
- }
663
-
664
- [class*='#{$namespace}-table__row--level'] {
665
- .#{$namespace}-table__expand-icon {
666
- display: inline-block;
667
- width: 12px;
668
- line-height: 12px;
669
- height: 12px;
670
- text-align: center;
671
- margin-right: 8px;
672
- }
673
- }
674
-
675
- @include b(table) {
676
- &.#{$namespace}-table--border {
677
- .#{$namespace}-table__cell {
678
- border-right: getCssVar('table-border');
679
- }
680
- }
681
- }
682
-
683
- &:not(.#{$namespace}-table--border) {
684
- .#{$namespace}-table__cell {
685
- border-right: none;
686
- }
687
-
688
- > .#{$namespace}-table__inner-wrapper {
689
- &::after {
690
- content: none;
691
- }
692
- }
693
- }
694
- }
1
+ @use 'sass:map';
2
+
3
+ @use 'mixins/mixins' as *;
4
+ @use 'mixins/var' as *;
5
+ @use 'common/var' as *;
6
+
7
+ @include b(table) {
8
+ @include set-component-css-var('table', $table);
9
+ }
10
+
11
+ @include b(table) {
12
+ position: relative;
13
+ overflow: hidden;
14
+ box-sizing: border-box;
15
+ height: fit-content;
16
+ width: 100%;
17
+ max-width: 100%;
18
+ background-color: getCssVar('table-bg-color');
19
+ font-size: 14px;
20
+ color: getCssVar('table-text-color');
21
+
22
+ @include e(inner-wrapper) {
23
+ position: relative;
24
+ display: flex;
25
+ flex-direction: column;
26
+ height: 100%;
27
+
28
+ // 表格底部伪 border,总是有的
29
+ &::before {
30
+ @include extend-rule(border-pseudo);
31
+ left: 0;
32
+ bottom: 0;
33
+ height: 1px;
34
+ }
35
+ }
36
+
37
+ tbody {
38
+ &:focus-visible {
39
+ outline: none;
40
+ }
41
+ }
42
+
43
+ &.has-footer {
44
+ &.#{$namespace}-table--scrollable-y,
45
+ &.#{$namespace}-table--fluid-height {
46
+ tr:last-child td.#{$namespace}-table__cell {
47
+ border-bottom-color: transparent;
48
+ }
49
+ }
50
+ }
51
+
52
+ // when data is empty
53
+ @include e(empty-block) {
54
+ position: sticky;
55
+ left: 0;
56
+ min-height: 60px;
57
+ text-align: center;
58
+ width: 100%;
59
+ display: flex;
60
+ justify-content: center;
61
+ align-items: center;
62
+ }
63
+
64
+ @include e(empty-text) {
65
+ // min-height doesn't work in IE10 and IE11 https://github.com/philipwalton/flexbugs#3-min-height-on-a-flex-container-wont-apply-to-its-flex-items
66
+ // set empty text line height up to contrainer min-height as workaround.
67
+ line-height: 60px;
68
+ width: 50%;
69
+ color: getCssVar('text-color', 'secondary');
70
+ }
71
+
72
+ // expand the row
73
+ @include e(expand-column) {
74
+ .cell {
75
+ padding: 0;
76
+ text-align: center;
77
+ user-select: none;
78
+ }
79
+ }
80
+
81
+ @include e(expand-icon) {
82
+ position: relative;
83
+ cursor: pointer;
84
+ color: getCssVar('text-color', 'regular');
85
+ font-size: 12px;
86
+ transition: transform getCssVar('transition-duration-fast') ease-in-out;
87
+ //height: 40px;
88
+
89
+ @include m(expanded) {
90
+ transform: rotate(90deg);
91
+ }
92
+
93
+ > .#{$namespace}-icon {
94
+ font-size: 12px;
95
+ }
96
+ }
97
+
98
+ @include e(expanded-cell) {
99
+ background-color: getCssVar('table-expanded-cell-bg-color');
100
+
101
+ // increase the weight purely
102
+ &[class*='cell'] {
103
+ padding: 20px 50px;
104
+ }
105
+
106
+ &:hover {
107
+ background-color: transparent !important;
108
+ }
109
+ }
110
+
111
+ @include e(placeholder) {
112
+ display: inline-block;
113
+ width: 20px;
114
+ }
115
+
116
+ @include e(append-wrapper) {
117
+ // avoid overlapping margin https://developer.mozilla.org/zh-CN/docs/Web/CSS/CSS_Box_Model/Mastering_margin_collapsing
118
+ overflow: hidden;
119
+ }
120
+
121
+ @include m(fit) {
122
+ border-right: 0;
123
+ border-bottom: 0;
124
+
125
+ .#{$namespace}-table__cell.gutter {
126
+ border-right-width: 1px;
127
+ }
128
+
129
+ @include e(inner-wrapper) {
130
+ &::before {
131
+ width: 100%;
132
+ }
133
+ }
134
+ }
135
+
136
+ thead {
137
+ color: getCssVar('table-header-text-color');
138
+
139
+ th {
140
+ font-weight: 500;
141
+ }
142
+
143
+ &.is-group {
144
+ th.#{$namespace}-table__cell {
145
+ background: getCssVar('fill-color', 'light');
146
+ }
147
+ }
148
+ }
149
+
150
+ .#{$namespace}-table__cell {
151
+ padding: map.get($table-padding, 'default');
152
+ min-width: 0;
153
+ box-sizing: border-box;
154
+ text-overflow: ellipsis;
155
+ vertical-align: middle;
156
+ position: relative;
157
+ text-align: left;
158
+ z-index: getCssVar('table-index');
159
+
160
+ @include when(center) {
161
+ text-align: center;
162
+ }
163
+
164
+ @include when(right) {
165
+ text-align: right;
166
+ }
167
+
168
+ &.gutter {
169
+ width: 15px;
170
+ border-right-width: 0;
171
+ border-bottom-width: 0;
172
+ padding: 0;
173
+ }
174
+
175
+ &.is-hidden {
176
+ > * {
177
+ visibility: hidden;
178
+ }
179
+ }
180
+ }
181
+
182
+ .cell {
183
+ box-sizing: border-box;
184
+ overflow: hidden;
185
+ text-overflow: ellipsis;
186
+ white-space: normal;
187
+ overflow-wrap: break-word;
188
+ line-height: 40px;
189
+ padding: 0 12px;
190
+ align-items: center;
191
+ &.#{$namespace}-tooltip {
192
+ white-space: nowrap;
193
+ min-width: 50px;
194
+ }
195
+ }
196
+
197
+ @each $size in (large, default, small) {
198
+ @include m($size) {
199
+ font-size: map.get($table-font-size, $size);
200
+
201
+ .#{$namespace}-table__cell {
202
+ padding: map.get($table-padding, $size);
203
+ }
204
+
205
+ .cell {
206
+ padding: map.get($table-cell-padding, $size);
207
+ }
208
+ }
209
+ }
210
+
211
+ tr {
212
+ background-color: getCssVar('table-tr-bg-color');
213
+
214
+ input[type='checkbox'] {
215
+ margin: 0;
216
+ }
217
+ }
218
+
219
+ th.#{$namespace}-table__cell.is-leaf,
220
+ td.#{$namespace}-table__cell {
221
+ border-bottom: getCssVar('table-border');
222
+ }
223
+
224
+ th.#{$namespace}-table__cell.is-sortable {
225
+ cursor: pointer;
226
+ }
227
+
228
+ th.#{$namespace}-table__cell {
229
+ background-color: getCssVar('table-header-bg-color');
230
+
231
+ > .cell.highlight {
232
+ color: getCssVar('color-primary');
233
+ }
234
+
235
+ &.required > div::before {
236
+ display: inline-block;
237
+ content: '';
238
+ width: 8px;
239
+ height: 8px;
240
+ border-radius: 50%;
241
+ background: #ff4d51;
242
+ margin-right: 5px;
243
+ vertical-align: middle;
244
+ }
245
+ }
246
+
247
+ td.#{$namespace}-table__cell {
248
+ div {
249
+ box-sizing: border-box;
250
+ }
251
+
252
+ &.gutter {
253
+ width: 0;
254
+ }
255
+ }
256
+
257
+ // 拥有多级表头
258
+ @include m((group, border)) {
259
+ @include share-rule(border-pseudo) {
260
+ content: '';
261
+ position: absolute;
262
+ background-color: getCssVar('table-border-color');
263
+ z-index: calc(getCssVar('table-index') + 2);
264
+ }
265
+ }
266
+
267
+ // table--border
268
+ @include m(border) {
269
+ @include e(inner-wrapper) {
270
+ &::after {
271
+ @include extend-rule(border-pseudo);
272
+ left: 0;
273
+ top: 0;
274
+ width: 100%;
275
+ height: 1px;
276
+ z-index: calc(getCssVar('table-index') + 2);
277
+ }
278
+ }
279
+
280
+ &::before {
281
+ @include extend-rule(border-pseudo);
282
+ top: -1px;
283
+ left: 0;
284
+ width: 1px;
285
+ height: 100%;
286
+ }
287
+
288
+ &::after {
289
+ @include extend-rule(border-pseudo);
290
+ top: -1px;
291
+ right: 0;
292
+ width: 1px;
293
+ height: 100%;
294
+ }
295
+
296
+ @include e(inner-wrapper) {
297
+ border-right: none;
298
+ border-bottom: none;
299
+ }
300
+
301
+ @include e(footer-wrapper) {
302
+ position: relative;
303
+ flex-shrink: 0;
304
+ }
305
+
306
+ .#{$namespace}-table__cell {
307
+ border-right: getCssVar('table-border');
308
+ }
309
+
310
+ th.#{$namespace}-table__cell.gutter:last-of-type {
311
+ border-bottom: getCssVar('table-border');
312
+ border-bottom-width: 1px;
313
+ }
314
+
315
+ & th.#{$namespace}-table__cell {
316
+ border-bottom: getCssVar('table-border');
317
+ }
318
+ }
319
+
320
+ @include m(hidden) {
321
+ visibility: hidden;
322
+ }
323
+
324
+ @include e((header-wrapper, body-wrapper, footer-wrapper)) {
325
+ width: 100%;
326
+
327
+ tr {
328
+ td,
329
+ th {
330
+ &.#{$namespace}-table-fixed-column--left,
331
+ &.#{$namespace}-table-fixed-column--right {
332
+ position: sticky !important;
333
+ background: inherit;
334
+ z-index: calc(getCssVar('table-index') + 1);
335
+
336
+ &.is-last-column,
337
+ &.is-first-column {
338
+ &::before {
339
+ content: '';
340
+ position: absolute;
341
+ top: 0px;
342
+ width: 10px;
343
+ bottom: -1px;
344
+ overflow-x: hidden;
345
+ overflow-y: hidden;
346
+ box-shadow: none;
347
+ touch-action: none;
348
+ pointer-events: none;
349
+ }
350
+ }
351
+
352
+ &.is-first-column {
353
+ &::before {
354
+ left: -10px;
355
+ }
356
+ }
357
+
358
+ &.is-last-column {
359
+ &::before {
360
+ right: -10px;
361
+ box-shadow: none;
362
+ }
363
+ }
364
+ }
365
+
366
+ &.#{$namespace}-table__fixed-right-patch {
367
+ position: sticky !important;
368
+ z-index: calc(getCssVar('table-index') + 1);
369
+ background: #fff;
370
+ right: 0;
371
+ }
372
+ }
373
+ }
374
+ }
375
+
376
+ @include e(header-wrapper) {
377
+ flex-shrink: 0;
378
+
379
+ tr {
380
+ th {
381
+ &.#{$namespace}-table-fixed-column--left,
382
+ &.#{$namespace}-table-fixed-column--right {
383
+ background-color: getCssVar('table-header-bg-color');
384
+ }
385
+ }
386
+ }
387
+ }
388
+
389
+ @include e((header, body, footer)) {
390
+ table-layout: fixed;
391
+ border-collapse: separate;
392
+ }
393
+
394
+ @include e((header-wrapper)) {
395
+ overflow: hidden;
396
+
397
+ & tbody td.#{$namespace}-table__cell {
398
+ background-color: getCssVar('table-row-hover-bg-color');
399
+ color: getCssVar('table-text-color');
400
+ }
401
+ }
402
+
403
+ @include e((footer-wrapper)) {
404
+ overflow: hidden;
405
+ flex-shrink: 0;
406
+
407
+ tfoot td.#{$namespace}-table__cell {
408
+ background-color: getCssVar('table-row-hover-bg-color');
409
+ color: getCssVar('table-text-color');
410
+ }
411
+ }
412
+
413
+ @include e((header-wrapper, body-wrapper)) {
414
+ .#{$namespace}-table-column--selection {
415
+ > .cell {
416
+ display: inline-flex;
417
+ align-items: center;
418
+ height: 23px;
419
+ }
420
+
421
+ .#{$namespace}-checkbox {
422
+ height: unset;
423
+ }
424
+ }
425
+ }
426
+
427
+ @include when(scrolling-left) {
428
+ .#{$namespace}-table-fixed-column--right.is-first-column {
429
+ &::before {
430
+ box-shadow: getCssVar('table-fixed-right-column');
431
+ }
432
+ }
433
+
434
+ &.#{$namespace}-table--border {
435
+ .#{$namespace}-table-fixed-column--left {
436
+ &.is-last-column {
437
+ &.#{$namespace}-table__cell {
438
+ border-right: getCssVar('table-border');
439
+ }
440
+ }
441
+ }
442
+ }
443
+
444
+ th.#{$namespace}-table-fixed-column--left {
445
+ background-color: getCssVar('table-header-bg-color');
446
+ }
447
+ }
448
+
449
+ @include when(scrolling-right) {
450
+ .#{$namespace}-table-fixed-column--left.is-last-column {
451
+ &::before {
452
+ box-shadow: getCssVar('table-fixed-left-column');
453
+ }
454
+ }
455
+
456
+ .#{$namespace}-table-fixed-column--left.is-last-column.#{$namespace}-table__cell {
457
+ border-right: none;
458
+ }
459
+
460
+ th.#{$namespace}-table-fixed-column--right {
461
+ background-color: getCssVar('table-header-bg-color');
462
+ }
463
+ }
464
+
465
+ @include when(scrolling-middle) {
466
+ .#{$namespace}-table-fixed-column--left.is-last-column.#{$namespace}-table__cell {
467
+ border-right: none;
468
+ }
469
+
470
+ .#{$namespace}-table-fixed-column--right.is-first-column {
471
+ &::before {
472
+ box-shadow: getCssVar('table-fixed-right-column');
473
+ }
474
+ }
475
+
476
+ .#{$namespace}-table-fixed-column--left.is-last-column {
477
+ &::before {
478
+ box-shadow: getCssVar('table-fixed-left-column');
479
+ }
480
+ }
481
+ }
482
+
483
+ @include when(scrolling-none) {
484
+ .#{$namespace}-table-fixed-column--left,
485
+ .#{$namespace}-table-fixed-column--right {
486
+ &.is-first-column,
487
+ &.is-last-column {
488
+ &::before {
489
+ box-shadow: none;
490
+ }
491
+ }
492
+ }
493
+
494
+ th.#{$namespace}-table-fixed-column--left,
495
+ th.#{$namespace}-table-fixed-column--right {
496
+ background-color: getCssVar('table-header-bg-color');
497
+ }
498
+ }
499
+
500
+ @include e(body-wrapper) {
501
+ overflow: hidden;
502
+ position: relative;
503
+ flex: 1;
504
+
505
+ .#{$namespace}-scrollbar__bar {
506
+ z-index: calc(getCssVar('table-index') + 2);
507
+ }
508
+ }
509
+
510
+ .caret-wrapper {
511
+ display: inline-flex;
512
+ flex-direction: column;
513
+ align-items: center;
514
+ height: 14px;
515
+ width: 24px;
516
+ vertical-align: middle;
517
+ cursor: pointer;
518
+ overflow: initial;
519
+ position: relative;
520
+ }
521
+
522
+ .sort-caret {
523
+ width: 0;
524
+ height: 0;
525
+ border: solid 5px transparent;
526
+ position: absolute;
527
+ left: 7px;
528
+
529
+ &.ascending {
530
+ border-bottom-color: getCssVar('text-color', 'placeholder');
531
+ top: -5px;
532
+ }
533
+
534
+ &.descending {
535
+ border-top-color: getCssVar('text-color', 'placeholder');
536
+ bottom: -3px;
537
+ }
538
+ }
539
+
540
+ .ascending .sort-caret.ascending {
541
+ border-bottom-color: getCssVar('color-primary');
542
+ }
543
+
544
+ .descending .sort-caret.descending {
545
+ border-top-color: getCssVar('color-primary');
546
+ }
547
+
548
+ .hidden-columns {
549
+ visibility: hidden;
550
+ position: absolute;
551
+ z-index: -1;
552
+ }
553
+
554
+ @include m(striped) {
555
+ & .#{$namespace}-table__body {
556
+ & tr.#{$namespace}-table__row--striped {
557
+ td.#{$namespace}-table__cell {
558
+ background: getCssVar('fill-color', 'lighter');
559
+ }
560
+
561
+ &.current-row td.#{$namespace}-table__cell {
562
+ background-color: getCssVar('table-current-row-bg-color');
563
+ }
564
+ }
565
+ }
566
+ }
567
+
568
+ @include e(body) {
569
+ tr.hover-row {
570
+ &,
571
+ &.#{$namespace}-table__row--striped {
572
+ &,
573
+ &.current-row {
574
+ > td.#{$namespace}-table__cell {
575
+ background-color: getCssVar('table-row-hover-bg-color');
576
+ }
577
+ }
578
+ }
579
+ }
580
+
581
+ tr > td.hover-cell {
582
+ background-color: getCssVar('table-row-hover-bg-color');
583
+ }
584
+
585
+ tr.current-row > td.#{$namespace}-table__cell {
586
+ background-color: getCssVar('table-current-row-bg-color');
587
+ }
588
+ }
589
+
590
+ &.#{$namespace}-table--scrollable-y {
591
+ @include e(body-header) {
592
+ position: sticky;
593
+ top: 0;
594
+ z-index: calc(getCssVar('table-index') + 2);
595
+ }
596
+
597
+ @include e(body-footer) {
598
+ position: sticky;
599
+ bottom: 0;
600
+ z-index: calc(getCssVar('table-index') + 2);
601
+ }
602
+ }
603
+
604
+ @include e(column-resize-proxy) {
605
+ position: absolute;
606
+ left: 200px;
607
+ top: 0;
608
+ bottom: 0;
609
+ width: 0;
610
+ border-left: getCssVar('table-border');
611
+ z-index: calc(getCssVar('table-index') + 9);
612
+ }
613
+
614
+ @include e(column-filter-trigger) {
615
+ display: inline-block;
616
+ cursor: pointer;
617
+
618
+ & i {
619
+ color: getCssVar('color-info');
620
+ font-size: 14px;
621
+ vertical-align: middle;
622
+ }
623
+ }
624
+
625
+ @include e(border-left-patch) {
626
+ top: 0;
627
+ left: 0;
628
+ width: 1px;
629
+ height: 100%;
630
+ z-index: calc(getCssVar('table-index') + 2);
631
+ position: absolute;
632
+ background-color: getCssVar('table-border-color');
633
+ }
634
+
635
+ @include e(border-bottom-patch) {
636
+ left: 0;
637
+ height: 1px;
638
+ z-index: calc(getCssVar('table-index') + 2);
639
+ position: absolute;
640
+ background-color: getCssVar('table-border-color');
641
+ }
642
+
643
+ @include e(border-right-patch) {
644
+ top: 0;
645
+ height: 100%;
646
+ width: 1px;
647
+ z-index: calc(getCssVar('table-index') + 2);
648
+ position: absolute;
649
+ background-color: getCssVar('table-border-color');
650
+ }
651
+
652
+ @include m(enable-row-transition) {
653
+ .#{$namespace}-table__body td.#{$namespace}-table__cell {
654
+ transition: background-color 0.25s ease;
655
+ }
656
+ }
657
+
658
+ @include m(enable-row-hover) {
659
+ .#{$namespace}-table__body tr:not(.current-row):hover > td.#{$namespace}-table__cell {
660
+ background-color: getCssVar('table-row-hover-bg-color');
661
+ }
662
+ }
663
+
664
+ [class*='#{$namespace}-table__row--level'] {
665
+ .#{$namespace}-table__expand-icon {
666
+ display: inline-block;
667
+ width: 12px;
668
+ line-height: 12px;
669
+ height: 12px;
670
+ text-align: center;
671
+ margin-right: 8px;
672
+ }
673
+ }
674
+
675
+ @include b(table) {
676
+ &.#{$namespace}-table--border {
677
+ .#{$namespace}-table__cell {
678
+ border-right: getCssVar('table-border');
679
+ }
680
+ }
681
+ }
682
+
683
+ &:not(.#{$namespace}-table--border) {
684
+ .#{$namespace}-table__cell {
685
+ border-right: none;
686
+ }
687
+
688
+ > .#{$namespace}-table__inner-wrapper {
689
+ &::after {
690
+ content: none;
691
+ }
692
+ }
693
+ }
694
+ }