瀏覽代碼

Table: fix hover-row bgcolor of table with fixed column

Tong 8 年之前
父節點
當前提交
6e685a3f02
共有 1 個文件被更改,包括 8 次插入2 次删除
  1. 8 2
      packages/theme-default/src/table.css

+ 8 - 2
packages/theme-default/src/table.css

@@ -400,8 +400,14 @@
     }
 
     @e body {
-      tr.hover-row > td {
-        background-color: var(--color-extra-light-gray);
+      tr.hover-row {
+        &, &.el-table__row--striped {
+          &, &.current-row {
+            > td {
+              background-color: var(--color-extra-light-gray);
+            }
+          }
+        }
       }
 
       tr.current-row > td {