cy-element-ui 1.0.47 → 1.0.48

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 (209) hide show
  1. package/README.md +1 -1
  2. package/lib/element-ui.common.js +1 -1
  3. package/lib/index.js +1 -1
  4. package/lib/theme-chalk/README.md +33 -0
  5. package/lib/theme-chalk/base.css +1 -1
  6. package/lib/theme-chalk/gulpfile.js +27 -0
  7. package/lib/theme-chalk/index.css +1 -1
  8. package/lib/theme-chalk/package.json +35 -0
  9. package/lib/theme-chalk/src/alert.scss +147 -0
  10. package/lib/theme-chalk/src/aside.scss +7 -0
  11. package/lib/theme-chalk/src/autocomplete.scss +80 -0
  12. package/lib/theme-chalk/src/avatar.scss +51 -0
  13. package/lib/theme-chalk/src/backtop.scss +22 -0
  14. package/lib/theme-chalk/src/badge.scss +57 -0
  15. package/lib/theme-chalk/src/base.scss +2 -0
  16. package/lib/theme-chalk/src/breadcrumb.scss +55 -0
  17. package/lib/theme-chalk/src/button.scss +262 -0
  18. package/lib/theme-chalk/src/calendar.scss +79 -0
  19. package/lib/theme-chalk/src/card.scss +32 -0
  20. package/lib/theme-chalk/src/carousel-item.scss +50 -0
  21. package/lib/theme-chalk/src/carousel.scss +161 -0
  22. package/lib/theme-chalk/src/cascader-panel.scss +120 -0
  23. package/lib/theme-chalk/src/cascader.scss +182 -0
  24. package/lib/theme-chalk/src/checkbox.scss +359 -0
  25. package/lib/theme-chalk/src/col.scss +156 -0
  26. package/lib/theme-chalk/src/collapse.scss +63 -0
  27. package/lib/theme-chalk/src/color-picker.scss +384 -0
  28. package/lib/theme-chalk/src/common/popup.scss +42 -0
  29. package/lib/theme-chalk/src/common/transition.scss +99 -0
  30. package/lib/theme-chalk/src/common/var.scss +1028 -0
  31. package/lib/theme-chalk/src/container.scss +14 -0
  32. package/lib/theme-chalk/src/date-picker/date-picker.scss +97 -0
  33. package/lib/theme-chalk/src/date-picker/date-range-picker.scss +101 -0
  34. package/lib/theme-chalk/src/date-picker/date-table.scss +151 -0
  35. package/lib/theme-chalk/src/date-picker/month-table.scss +82 -0
  36. package/lib/theme-chalk/src/date-picker/picker-panel.scss +117 -0
  37. package/lib/theme-chalk/src/date-picker/picker.scss +197 -0
  38. package/lib/theme-chalk/src/date-picker/time-picker.scss +85 -0
  39. package/lib/theme-chalk/src/date-picker/time-range-picker.scss +31 -0
  40. package/lib/theme-chalk/src/date-picker/time-spinner.scss +110 -0
  41. package/lib/theme-chalk/src/date-picker/year-table.scss +51 -0
  42. package/lib/theme-chalk/src/date-picker.scss +12 -0
  43. package/lib/theme-chalk/src/descriptions-item.scss +42 -0
  44. package/lib/theme-chalk/src/descriptions.scss +111 -0
  45. package/lib/theme-chalk/src/dialog.scss +123 -0
  46. package/lib/theme-chalk/src/display.scss +12 -0
  47. package/lib/theme-chalk/src/divider.scss +47 -0
  48. package/lib/theme-chalk/src/drawer.scss +219 -0
  49. package/lib/theme-chalk/src/dropdown.scss +182 -0
  50. package/lib/theme-chalk/src/empty.scss +45 -0
  51. package/lib/theme-chalk/src/footer.scss +8 -0
  52. package/lib/theme-chalk/src/form.scss +167 -0
  53. package/lib/theme-chalk/src/header.scss +8 -0
  54. package/lib/theme-chalk/src/icon.scss +1167 -0
  55. package/lib/theme-chalk/src/image.scss +179 -0
  56. package/lib/theme-chalk/src/index.scss +90 -0
  57. package/lib/theme-chalk/src/input-number.scss +180 -0
  58. package/lib/theme-chalk/src/input.scss +360 -0
  59. package/lib/theme-chalk/src/link.scss +81 -0
  60. package/lib/theme-chalk/src/loading.scss +96 -0
  61. package/lib/theme-chalk/src/main.scss +12 -0
  62. package/lib/theme-chalk/src/menu.scss +289 -0
  63. package/lib/theme-chalk/src/message-box.scss +226 -0
  64. package/lib/theme-chalk/src/message.scss +120 -0
  65. package/lib/theme-chalk/src/mixins/_button.scss +81 -0
  66. package/lib/theme-chalk/src/mixins/config.scss +4 -0
  67. package/lib/theme-chalk/src/mixins/function.scss +44 -0
  68. package/lib/theme-chalk/src/mixins/mixins.scss +190 -0
  69. package/lib/theme-chalk/src/mixins/utils.scss +39 -0
  70. package/lib/theme-chalk/src/notification.scss +99 -0
  71. package/lib/theme-chalk/src/option-group.scss +42 -0
  72. package/lib/theme-chalk/src/option.scss +36 -0
  73. package/lib/theme-chalk/src/page-header.scss +41 -0
  74. package/lib/theme-chalk/src/pagination.scss +295 -0
  75. package/lib/theme-chalk/src/popconfirm.scss +16 -0
  76. package/lib/theme-chalk/src/popover.scss +40 -0
  77. package/lib/theme-chalk/src/popper.scss +101 -0
  78. package/lib/theme-chalk/src/progress.scss +141 -0
  79. package/lib/theme-chalk/src/radio-button.scss +113 -0
  80. package/lib/theme-chalk/src/radio-group.scss +9 -0
  81. package/lib/theme-chalk/src/radio.scss +199 -0
  82. package/lib/theme-chalk/src/rate.scss +49 -0
  83. package/lib/theme-chalk/src/reset.scss +79 -0
  84. package/lib/theme-chalk/src/result.scss +61 -0
  85. package/lib/theme-chalk/src/row.scss +43 -0
  86. package/lib/theme-chalk/src/scrollbar.scss +72 -0
  87. package/lib/theme-chalk/src/select-dropdown.scss +62 -0
  88. package/lib/theme-chalk/src/select.scss +152 -0
  89. package/lib/theme-chalk/src/skeleton-item.scss +84 -0
  90. package/lib/theme-chalk/src/skeleton.scss +40 -0
  91. package/lib/theme-chalk/src/slider.scss +250 -0
  92. package/lib/theme-chalk/src/spinner.scss +44 -0
  93. package/lib/theme-chalk/src/statistic.scss +38 -0
  94. package/lib/theme-chalk/src/step.scss +317 -0
  95. package/lib/theme-chalk/src/steps.scss +20 -0
  96. package/lib/theme-chalk/src/switch.scss +116 -0
  97. package/lib/theme-chalk/src/table-column.scss +97 -0
  98. package/lib/theme-chalk/src/table.scss +564 -0
  99. package/lib/theme-chalk/src/tabs.scss +602 -0
  100. package/lib/theme-chalk/src/tag.scss +163 -0
  101. package/lib/theme-chalk/src/time-picker.scss +8 -0
  102. package/lib/theme-chalk/src/time-select.scss +37 -0
  103. package/lib/theme-chalk/src/timeline-item.scss +86 -0
  104. package/lib/theme-chalk/src/timeline.scss +14 -0
  105. package/lib/theme-chalk/src/tooltip.scss +141 -0
  106. package/lib/theme-chalk/src/transfer.scss +227 -0
  107. package/lib/theme-chalk/src/tree.scss +123 -0
  108. package/lib/theme-chalk/src/upload.scss +603 -0
  109. package/package.json +3 -3
  110. package/packages/theme-chalk/gulpfile.js +1 -14
  111. package/packages/theme-chalk/src/common/var.scss +16 -16
  112. package/packages/theme-cy/gulpfile.js +1 -14
  113. package/src/index.js +1 -1
  114. package/lib/theme-chalk/alert.css +0 -1
  115. package/lib/theme-chalk/aside.css +0 -1
  116. package/lib/theme-chalk/autocomplete.css +0 -1
  117. package/lib/theme-chalk/avatar.css +0 -1
  118. package/lib/theme-chalk/backtop.css +0 -1
  119. package/lib/theme-chalk/badge.css +0 -1
  120. package/lib/theme-chalk/breadcrumb.css +0 -1
  121. package/lib/theme-chalk/button.css +0 -1
  122. package/lib/theme-chalk/calendar.css +0 -1
  123. package/lib/theme-chalk/card.css +0 -1
  124. package/lib/theme-chalk/carousel-item.css +0 -1
  125. package/lib/theme-chalk/carousel.css +0 -1
  126. package/lib/theme-chalk/cascader-panel.css +0 -1
  127. package/lib/theme-chalk/cascader.css +0 -1
  128. package/lib/theme-chalk/checkbox.css +0 -1
  129. package/lib/theme-chalk/col.css +0 -1
  130. package/lib/theme-chalk/collapse.css +0 -1
  131. package/lib/theme-chalk/color-picker.css +0 -1
  132. package/lib/theme-chalk/container.css +0 -1
  133. package/lib/theme-chalk/date-picker.css +0 -1
  134. package/lib/theme-chalk/descriptions-item.css +0 -1
  135. package/lib/theme-chalk/descriptions.css +0 -1
  136. package/lib/theme-chalk/dialog.css +0 -1
  137. package/lib/theme-chalk/display.css +0 -1
  138. package/lib/theme-chalk/divider.css +0 -1
  139. package/lib/theme-chalk/drawer.css +0 -1
  140. package/lib/theme-chalk/dropdown.css +0 -1
  141. package/lib/theme-chalk/empty.css +0 -1
  142. package/lib/theme-chalk/footer.css +0 -1
  143. package/lib/theme-chalk/form.css +0 -1
  144. package/lib/theme-chalk/header.css +0 -1
  145. package/lib/theme-chalk/icon.css +0 -1
  146. package/lib/theme-chalk/image.css +0 -1
  147. package/lib/theme-chalk/input-number.css +0 -1
  148. package/lib/theme-chalk/input.css +0 -1
  149. package/lib/theme-chalk/link.css +0 -1
  150. package/lib/theme-chalk/loading.css +0 -1
  151. package/lib/theme-chalk/main.css +0 -1
  152. package/lib/theme-chalk/menu.css +0 -1
  153. package/lib/theme-chalk/message-box.css +0 -1
  154. package/lib/theme-chalk/message.css +0 -1
  155. package/lib/theme-chalk/notification.css +0 -1
  156. package/lib/theme-chalk/option-group.css +0 -1
  157. package/lib/theme-chalk/option.css +0 -1
  158. package/lib/theme-chalk/page-header.css +0 -1
  159. package/lib/theme-chalk/pagination.css +0 -1
  160. package/lib/theme-chalk/popconfirm.css +0 -1
  161. package/lib/theme-chalk/popover.css +0 -1
  162. package/lib/theme-chalk/popper.css +0 -1
  163. package/lib/theme-chalk/progress.css +0 -1
  164. package/lib/theme-chalk/radio-button.css +0 -1
  165. package/lib/theme-chalk/radio-group.css +0 -1
  166. package/lib/theme-chalk/radio.css +0 -1
  167. package/lib/theme-chalk/rate.css +0 -1
  168. package/lib/theme-chalk/reset.css +0 -1
  169. package/lib/theme-chalk/result.css +0 -1
  170. package/lib/theme-chalk/row.css +0 -1
  171. package/lib/theme-chalk/scrollbar.css +0 -1
  172. package/lib/theme-chalk/select-dropdown.css +0 -1
  173. package/lib/theme-chalk/select.css +0 -1
  174. package/lib/theme-chalk/skeleton-item.css +0 -1
  175. package/lib/theme-chalk/skeleton.css +0 -1
  176. package/lib/theme-chalk/slider.css +0 -1
  177. package/lib/theme-chalk/spinner.css +0 -1
  178. package/lib/theme-chalk/statistic.css +0 -1
  179. package/lib/theme-chalk/step.css +0 -1
  180. package/lib/theme-chalk/steps.css +0 -1
  181. package/lib/theme-chalk/switch.css +0 -1
  182. package/lib/theme-chalk/table-column.css +0 -1
  183. package/lib/theme-chalk/table.css +0 -1
  184. package/lib/theme-chalk/tabs.css +0 -1
  185. package/lib/theme-chalk/tag.css +0 -1
  186. package/lib/theme-chalk/time-picker.css +0 -1
  187. package/lib/theme-chalk/time-select.css +0 -1
  188. package/lib/theme-chalk/timeline-item.css +0 -1
  189. package/lib/theme-chalk/timeline.css +0 -1
  190. package/lib/theme-chalk/tooltip.css +0 -1
  191. package/lib/theme-chalk/transfer.css +0 -1
  192. package/lib/theme-chalk/tree.css +0 -1
  193. package/lib/theme-chalk/upload.css +0 -1
  194. /package/lib/theme-chalk/{breadcrumb-item.css → src/breadcrumb-item.scss} +0 -0
  195. /package/lib/theme-chalk/{button-group.css → src/button-group.scss} +0 -0
  196. /package/lib/theme-chalk/{checkbox-button.css → src/checkbox-button.scss} +0 -0
  197. /package/lib/theme-chalk/{checkbox-group.css → src/checkbox-group.scss} +0 -0
  198. /package/lib/theme-chalk/{collapse-item.css → src/collapse-item.scss} +0 -0
  199. /package/lib/theme-chalk/{dropdown-item.css → src/dropdown-item.scss} +0 -0
  200. /package/lib/theme-chalk/{dropdown-menu.css → src/dropdown-menu.scss} +0 -0
  201. /package/lib/theme-chalk/{fonts → src/fonts}/element-icons.ttf +0 -0
  202. /package/lib/theme-chalk/{fonts → src/fonts}/element-icons.woff +0 -0
  203. /package/lib/theme-chalk/{form-item.css → src/form-item.scss} +0 -0
  204. /package/lib/theme-chalk/{infinite-scroll.css → src/infinite-scroll.scss} +0 -0
  205. /package/lib/theme-chalk/{infiniteScroll.css → src/infiniteScroll.scss} +0 -0
  206. /package/lib/theme-chalk/{menu-item-group.css → src/menu-item-group.scss} +0 -0
  207. /package/lib/theme-chalk/{menu-item.css → src/menu-item.scss} +0 -0
  208. /package/lib/theme-chalk/{submenu.css → src/submenu.scss} +0 -0
  209. /package/lib/theme-chalk/{tab-pane.css → src/tab-pane.scss} +0 -0
@@ -0,0 +1,564 @@
1
+ @import "mixins/mixins";
2
+ @import "checkbox";
3
+ @import "tag";
4
+ @import "tooltip";
5
+ @import "common/var";
6
+
7
+ @include b(table) {
8
+ position: relative;
9
+ overflow: hidden;
10
+ box-sizing: border-box;
11
+ flex: 1;
12
+ width: 100%;
13
+ max-width: 100%;
14
+ background-color: $--color-white;
15
+ font-size: 14px;
16
+ color: $--table-font-color;
17
+
18
+ // 数据为空
19
+ @include e(empty-block) {
20
+ min-height: 60px;
21
+ text-align: center;
22
+ width: 100%;
23
+ display: flex;
24
+ justify-content: center;
25
+ align-items: center;
26
+ }
27
+
28
+ @include e(empty-text) {
29
+ // 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
30
+ // set empty text line height up to contrainer min-height as workaround.
31
+ line-height: 60px;
32
+ width: 50%;
33
+ color: $--color-text-secondary;
34
+ }
35
+
36
+ // 展开行
37
+ @include e(expand-column) {
38
+ .cell {
39
+ padding: 0;
40
+ text-align: center;
41
+ }
42
+ }
43
+
44
+ @include e(expand-icon) {
45
+ position: relative;
46
+ cursor: pointer;
47
+ color: #666;
48
+ font-size: 12px;
49
+ transition: transform 0.2s ease-in-out;
50
+ height: 20px;
51
+
52
+ @include m(expanded) {
53
+ transform: rotate(90deg);
54
+ }
55
+
56
+ > .el-icon {
57
+ position: absolute;
58
+ left: 50%;
59
+ top: 50%;
60
+ margin-left: -5px;
61
+ margin-top: -5px;
62
+ }
63
+ }
64
+
65
+ @include e(expanded-cell) {
66
+ background-color: $--color-white;
67
+
68
+ // 纯属为了增加权重
69
+ &[class*=cell] {
70
+ padding: 20px 50px;
71
+ }
72
+
73
+ &:hover {
74
+ background-color: transparent !important;
75
+ }
76
+ }
77
+
78
+ @include e(placeholder) {
79
+ display: inline-block;
80
+ width: 20px;
81
+ }
82
+
83
+ @include e(append-wrapper) {
84
+ // 避免外边距重合 https://developer.mozilla.org/zh-CN/docs/Web/CSS/CSS_Box_Model/Mastering_margin_collapsing
85
+ overflow: hidden;
86
+ }
87
+
88
+ @include m(fit) {
89
+ border-right: 0;
90
+ border-bottom: 0;
91
+
92
+ .el-table__cell.gutter {
93
+ border-right-width: 1px;
94
+ }
95
+ }
96
+
97
+ @include m(scrollable-x) {
98
+ .el-table__body-wrapper {
99
+ overflow-x: auto;
100
+ }
101
+ }
102
+
103
+ @include m(scrollable-y) {
104
+ .el-table__body-wrapper {
105
+ overflow-y: auto;
106
+ }
107
+ }
108
+
109
+ thead {
110
+ color: $--table-header-font-color;
111
+ font-weight: 500;
112
+
113
+ &.is-group {
114
+ th.el-table__cell {
115
+ background: $--background-color-base;
116
+ }
117
+ }
118
+ }
119
+
120
+ .el-table__cell {
121
+ padding: 12px 0;
122
+ min-width: 0;
123
+ box-sizing: border-box;
124
+ text-overflow: ellipsis;
125
+ vertical-align: middle;
126
+ position: relative;
127
+ text-align: left;
128
+
129
+ @include when(center) {
130
+ text-align: center;
131
+ }
132
+
133
+ @include when(right) {
134
+ text-align: right;
135
+ }
136
+
137
+ &.gutter {
138
+ width: 15px;
139
+ border-right-width: 0;
140
+ border-bottom-width: 0;
141
+ padding: 0;
142
+ }
143
+
144
+ &.is-hidden {
145
+ > * {
146
+ visibility: hidden;
147
+ }
148
+ }
149
+ }
150
+
151
+ @include m(medium) {
152
+ .el-table__cell {
153
+ padding: 10px 0;
154
+ }
155
+ }
156
+
157
+ @include m(small) {
158
+ font-size: 12px;
159
+ .el-table__cell {
160
+ padding: 8px 0;
161
+ }
162
+ }
163
+
164
+ @include m(mini) {
165
+ font-size: 12px;
166
+ .el-table__cell {
167
+ padding: 6px 0;
168
+ }
169
+ }
170
+
171
+ tr {
172
+ background-color: $--color-white;
173
+
174
+ input[type="checkbox"] {
175
+ margin: 0;
176
+ }
177
+ }
178
+
179
+ th.el-table__cell.is-leaf,
180
+ td.el-table__cell {
181
+ border-bottom: $--table-border;
182
+ }
183
+
184
+ th.el-table__cell.is-sortable {
185
+ cursor: pointer;
186
+ }
187
+
188
+ th.el-table__cell {
189
+ overflow: hidden;
190
+ user-select: none;
191
+ background-color: $--table-header-background-color;
192
+
193
+ > .cell {
194
+ display: inline-block;
195
+ box-sizing: border-box;
196
+ position: relative;
197
+ vertical-align: middle;
198
+ padding-left: 10px;
199
+ padding-right: 10px;
200
+ width: 100%;
201
+
202
+ &.highlight {
203
+ color: $--color-primary;
204
+ }
205
+ }
206
+
207
+ &.required > div::before {
208
+ display: inline-block;
209
+ content: "";
210
+ width: 8px;
211
+ height: 8px;
212
+ border-radius: 50%;
213
+ background: #ff4d51;
214
+ margin-right: 5px;
215
+ vertical-align: middle;
216
+ }
217
+ }
218
+
219
+ td.el-table__cell {
220
+ div {
221
+ box-sizing: border-box;
222
+ }
223
+
224
+ &.gutter {
225
+ width: 0;
226
+ }
227
+ }
228
+
229
+ .cell {
230
+ box-sizing: border-box;
231
+ overflow: hidden;
232
+ text-overflow: ellipsis;
233
+ white-space: normal;
234
+ word-break: break-all;
235
+ line-height: 23px;
236
+ padding-left: 10px;
237
+ padding-right: 10px;
238
+
239
+ &.el-tooltip {
240
+ white-space: nowrap;
241
+ min-width: 50px;
242
+ }
243
+ }
244
+
245
+ // 拥有多级表头
246
+ @include m((group, border)) {
247
+ border: $--table-border;
248
+
249
+ @include share-rule(border-pseudo) {
250
+ content: '';
251
+ position: absolute;
252
+ background-color: $--table-border-color;
253
+ z-index: 1;
254
+ }
255
+
256
+ // 表格右部伪 border
257
+ &::after {
258
+ @include extend-rule(border-pseudo);
259
+ top: 0;
260
+ right: 0;
261
+ width: 1px;
262
+ height: 100%;
263
+ }
264
+ }
265
+
266
+ // 表格底部伪 border,总是有的
267
+ &::before {
268
+ @include extend-rule(border-pseudo);
269
+ left: 0;
270
+ bottom: 0;
271
+ width: 100%;
272
+ height: 1px;
273
+ }
274
+
275
+ // table--border
276
+ @include m(border) {
277
+ border-right: none;
278
+ border-bottom: none;
279
+
280
+ &.el-loading-parent--relative {
281
+ border-color: transparent;
282
+ }
283
+
284
+ .el-table__cell {
285
+ border-right: $--table-border;
286
+
287
+ &:first-child .cell {
288
+ padding-left: 10px;
289
+ }
290
+ }
291
+
292
+ th.el-table__cell.gutter:last-of-type {
293
+ border-bottom: $--table-border;
294
+ border-bottom-width: 1px;
295
+ }
296
+
297
+ & th.el-table__cell {
298
+ border-bottom: $--table-border;
299
+ }
300
+ }
301
+
302
+ @include m(hidden) {
303
+ visibility: hidden;
304
+ }
305
+
306
+ @include e((fixed, fixed-right)) {
307
+ position: absolute;
308
+ top: 0;
309
+ left: 0;
310
+ overflow-x: hidden;
311
+ overflow-y: hidden;
312
+ box-shadow: $--table-fixed-box-shadow;
313
+
314
+ &::before {
315
+ content: '';
316
+ position: absolute;
317
+ left: 0;
318
+ bottom: 0;
319
+ width: 100%;
320
+ height: 1px;
321
+ background-color: $--border-color-lighter;
322
+ z-index: 4;
323
+ }
324
+ }
325
+
326
+ @include e(fixed-right-patch) {
327
+ position: absolute;
328
+ top: -1px;
329
+ right: 0;
330
+ background-color: $--color-white;
331
+ border-bottom: $--table-border;
332
+ }
333
+
334
+ @include e(fixed-right) {
335
+ top: 0;
336
+ left: auto;
337
+ right: 0;
338
+
339
+ .el-table__fixed-header-wrapper,
340
+ .el-table__fixed-body-wrapper,
341
+ .el-table__fixed-footer-wrapper {
342
+ left: auto;
343
+ right: 0;
344
+ }
345
+ }
346
+
347
+ @include e(fixed-header-wrapper) {
348
+ position: absolute;
349
+ left: 0;
350
+ top: 0;
351
+ z-index: 3;
352
+ }
353
+
354
+ @include e(fixed-footer-wrapper) {
355
+ position: absolute;
356
+ left: 0;
357
+ bottom: 0;
358
+ z-index: 3;
359
+
360
+ & tbody td.el-table__cell {
361
+ border-top: $--table-border;
362
+ background-color: $--table-row-hover-background-color;
363
+ color: $--table-font-color;
364
+ }
365
+ }
366
+
367
+ @include e(fixed-body-wrapper) {
368
+ position: absolute;
369
+ left: 0;
370
+ top: 37px;
371
+ overflow: hidden;
372
+ z-index: 3;
373
+ }
374
+
375
+ @include e((header-wrapper, body-wrapper, footer-wrapper)) {
376
+ width: 100%;
377
+ }
378
+
379
+ @include e(footer-wrapper) {
380
+ margin-top: -1px;
381
+ td.el-table__cell {
382
+ border-top: $--table-border;
383
+ }
384
+ }
385
+
386
+ @include e((header, body, footer)) {
387
+ table-layout: fixed;
388
+ border-collapse: separate;
389
+ }
390
+
391
+ @include e((header-wrapper, footer-wrapper)) {
392
+ overflow: hidden;
393
+
394
+ & tbody td.el-table__cell {
395
+ background-color: $--table-row-hover-background-color;
396
+ color: $--table-font-color;
397
+ }
398
+ }
399
+
400
+ @include e(body-wrapper) {
401
+ overflow: hidden;
402
+ position: relative;
403
+
404
+ @include when(scrolling-none) {
405
+ ~ .el-table__fixed,
406
+ ~ .el-table__fixed-right {
407
+ box-shadow: none;
408
+ }
409
+ }
410
+
411
+ @include when(scrolling-left) {
412
+ ~ .el-table__fixed {
413
+ box-shadow: none;
414
+ }
415
+ }
416
+
417
+ @include when(scrolling-right) {
418
+ ~ .el-table__fixed-right {
419
+ box-shadow: none;
420
+ }
421
+ }
422
+
423
+ .el-table--border {
424
+ @include when(scrolling-right) {
425
+ ~ .el-table__fixed-right {
426
+ border-left: $--table-border;
427
+ }
428
+ }
429
+
430
+ @include when(scrolling-left) {
431
+ ~ .el-table__fixed {
432
+ border-right: $--table-border;
433
+ }
434
+ }
435
+ }
436
+ }
437
+
438
+ .caret-wrapper {
439
+ display: inline-flex;
440
+ flex-direction: column;
441
+ align-items: center;
442
+ height: 34px;
443
+ width: 24px;
444
+ vertical-align: middle;
445
+ cursor: pointer;
446
+ overflow: initial;
447
+ position: relative;
448
+ }
449
+
450
+ .sort-caret {
451
+ width: 0;
452
+ height: 0;
453
+ border: solid 5px transparent;
454
+ position: absolute;
455
+ left: 7px;
456
+
457
+ &.ascending {
458
+ border-bottom-color: $--color-text-placeholder;
459
+ top: 5px;
460
+ }
461
+
462
+ &.descending {
463
+ border-top-color: $--color-text-placeholder;
464
+ bottom: 7px;
465
+ }
466
+ }
467
+
468
+ .ascending .sort-caret.ascending {
469
+ border-bottom-color: $--color-primary;
470
+ }
471
+
472
+ .descending .sort-caret.descending {
473
+ border-top-color: $--color-primary;
474
+ }
475
+
476
+ .hidden-columns {
477
+ visibility: hidden;
478
+ position: absolute;
479
+ z-index: -1;
480
+ }
481
+
482
+ @include m(striped) {
483
+ & .el-table__body {
484
+ & tr.el-table__row--striped {
485
+ td.el-table__cell {
486
+ background: #FAFAFA;
487
+ }
488
+
489
+ &.current-row td.el-table__cell, &.selection-row td.el-table__cell {
490
+ background-color: $--table-current-row-background-color;
491
+ }
492
+ }
493
+ }
494
+ }
495
+
496
+ @include e(body) {
497
+ tr.hover-row {
498
+ &, &.el-table__row--striped {
499
+ &, &.current-row, &.selection-row {
500
+ > td.el-table__cell {
501
+ background-color: $--table-row-hover-background-color;
502
+ }
503
+ }
504
+ }
505
+ }
506
+
507
+ tr.current-row > td.el-table__cell, tr.selection-row > td.el-table__cell {
508
+ background-color: $--table-current-row-background-color;
509
+ }
510
+ }
511
+
512
+ @include e(column-resize-proxy) {
513
+ position: absolute;
514
+ left: 200px;
515
+ top: 0;
516
+ bottom: 0;
517
+ width: 0;
518
+ border-left: $--table-border;
519
+ z-index: 10;
520
+ }
521
+
522
+ @include e(column-filter-trigger) {
523
+ display: inline-block;
524
+ line-height: 34px;
525
+ cursor: pointer;
526
+
527
+ & i {
528
+ color: $--color-info;
529
+ font-size: 12px;
530
+ transform: scale(.75);
531
+ }
532
+ }
533
+
534
+ @include m(enable-row-transition) {
535
+ .el-table__body td.el-table__cell {
536
+ transition: background-color .25s ease;
537
+ }
538
+ }
539
+
540
+ @include m(enable-row-hover) {
541
+ .el-table__body tr:hover > td.el-table__cell {
542
+ background-color: $--table-row-hover-background-color;
543
+ }
544
+ }
545
+
546
+ @include m(fluid-height) {
547
+ .el-table__fixed,
548
+ .el-table__fixed-right {
549
+ bottom: 0;
550
+ overflow: hidden;
551
+ }
552
+ }
553
+
554
+ [class*=el-table__row--level] {
555
+ .el-table__expand-icon {
556
+ display: inline-block;
557
+ width: 20px;
558
+ line-height: 20px;
559
+ height: 20px;
560
+ text-align: center;
561
+ margin-right: 3px;
562
+ }
563
+ }
564
+ }