|
89 | 89 | border-right: 0; |
90 | 90 | border-bottom: 0; |
91 | 91 |
|
92 | | - th.gutter, td.gutter { |
| 92 | + .el-table__cell.gutter { |
93 | 93 | border-right-width: 1px; |
94 | 94 | } |
95 | 95 | } |
|
111 | 111 | font-weight: 500; |
112 | 112 |
|
113 | 113 | &.is-group { |
114 | | - th { |
| 114 | + th.el-table__cell { |
115 | 115 | background: $--background-color-base; |
116 | 116 | } |
117 | 117 | } |
118 | 118 | } |
119 | 119 |
|
120 | | - th, td { |
| 120 | + .el-table__cell { |
121 | 121 | padding: 12px 0; |
122 | 122 | min-width: 0; |
123 | 123 | box-sizing: border-box; |
|
149 | 149 | } |
150 | 150 |
|
151 | 151 | @include m(medium) { |
152 | | - th, td { |
| 152 | + .el-table__cell { |
153 | 153 | padding: 10px 0; |
154 | 154 | } |
155 | 155 | } |
156 | 156 |
|
157 | 157 | @include m(small) { |
158 | 158 | font-size: 12px; |
159 | | - th, td { |
| 159 | + .el-table__cell { |
160 | 160 | padding: 8px 0; |
161 | 161 | } |
162 | 162 | } |
163 | 163 |
|
164 | 164 | @include m(mini) { |
165 | 165 | font-size: 12px; |
166 | | - th, td { |
| 166 | + .el-table__cell { |
167 | 167 | padding: 6px 0; |
168 | 168 | } |
169 | 169 | } |
|
176 | 176 | } |
177 | 177 | } |
178 | 178 |
|
179 | | - th.is-leaf, td { |
| 179 | + th.el-table__cell.is-leaf, |
| 180 | + td.el-table__cell { |
180 | 181 | border-bottom: $--table-border; |
181 | 182 | } |
182 | 183 |
|
183 | | - th.is-sortable { |
| 184 | + th.el-table__cell.is-sortable { |
184 | 185 | cursor: pointer; |
185 | 186 | } |
186 | 187 |
|
187 | | - th { |
| 188 | + th.el-table__cell { |
188 | 189 | overflow: hidden; |
189 | 190 | user-select: none; |
190 | 191 | background-color: $--table-header-background-color; |
|
215 | 216 | } |
216 | 217 | } |
217 | 218 |
|
218 | | - td { |
| 219 | + td.el-table__cell { |
219 | 220 | div { |
220 | 221 | box-sizing: border-box; |
221 | 222 | } |
|
280 | 281 | border-color: transparent; |
281 | 282 | } |
282 | 283 |
|
283 | | - th, td { |
| 284 | + .el-table__cell { |
284 | 285 | border-right: $--table-border; |
285 | 286 |
|
286 | 287 | &:first-child .cell { |
287 | 288 | padding-left: 10px; |
288 | 289 | } |
289 | 290 | } |
290 | 291 |
|
291 | | - th.gutter:last-of-type { |
| 292 | + th.el-table__cell.gutter:last-of-type { |
292 | 293 | border-bottom: $--table-border; |
293 | 294 | border-bottom-width: 1px; |
294 | 295 | } |
295 | 296 |
|
296 | | - & th { |
| 297 | + & th.el-table__cell { |
297 | 298 | border-bottom: $--table-border; |
298 | 299 | } |
299 | 300 | } |
|
356 | 357 | bottom: 0; |
357 | 358 | z-index: 3; |
358 | 359 |
|
359 | | - & tbody td { |
| 360 | + & tbody td.el-table__cell { |
360 | 361 | border-top: $--table-border; |
361 | 362 | background-color: $--table-row-hover-background-color; |
362 | 363 | color: $--table-font-color; |
|
377 | 378 |
|
378 | 379 | @include e(footer-wrapper) { |
379 | 380 | margin-top: -1px; |
380 | | - td { |
| 381 | + td.el-table__cell { |
381 | 382 | border-top: $--table-border; |
382 | 383 | } |
383 | 384 | } |
|
390 | 391 | @include e((header-wrapper, footer-wrapper)) { |
391 | 392 | overflow: hidden; |
392 | 393 |
|
393 | | - & tbody td { |
| 394 | + & tbody td.el-table__cell { |
394 | 395 | background-color: $--table-row-hover-background-color; |
395 | 396 | color: $--table-font-color; |
396 | 397 | } |
|
481 | 482 | @include m(striped) { |
482 | 483 | & .el-table__body { |
483 | 484 | & tr.el-table__row--striped { |
484 | | - td { |
| 485 | + td.el-table__cell { |
485 | 486 | background: #FAFAFA; |
486 | 487 | } |
487 | 488 |
|
488 | | - &.current-row td { |
| 489 | + &.current-row td.el-table__cell { |
489 | 490 | background-color: $--table-current-row-background-color; |
490 | 491 | } |
491 | 492 | } |
|
496 | 497 | tr.hover-row { |
497 | 498 | &, &.el-table__row--striped { |
498 | 499 | &, &.current-row { |
499 | | - > td { |
| 500 | + > td.el-table__cell { |
500 | 501 | background-color: $--table-row-hover-background-color; |
501 | 502 | } |
502 | 503 | } |
503 | 504 | } |
504 | 505 | } |
505 | 506 |
|
506 | | - tr.current-row > td { |
| 507 | + tr.current-row > td.el-table__cell { |
507 | 508 | background-color: $--table-current-row-background-color; |
508 | 509 | } |
509 | 510 | } |
|
531 | 532 | } |
532 | 533 |
|
533 | 534 | @include m(enable-row-transition) { |
534 | | - .el-table__body td { |
| 535 | + .el-table__body td.el-table__cell { |
535 | 536 | transition: background-color .25s ease; |
536 | 537 | } |
537 | 538 | } |
538 | 539 |
|
539 | 540 | @include m(enable-row-hover) { |
540 | | - .el-table__body tr:hover > td { |
| 541 | + .el-table__body tr:hover > td.el-table__cell { |
541 | 542 | background-color: $--table-row-hover-background-color; |
542 | 543 | } |
543 | 544 | } |
|
0 commit comments