Bläddra i källkod

🦄 refactor: 调整封装表格样式

Zimo 1 dag sedan
förälder
incheckning
ab4a8bc3d6
1 ändrade filer med 15 tillägg och 2 borttagningar
  1. 15 2
      src/components/ZmTable/index.vue

+ 15 - 2
src/components/ZmTable/index.vue

@@ -129,12 +129,11 @@ defineExpose({
     height: 52px;
 
     &:last-child {
-      border: none !important;
+      border-right: none !important;
     }
   }
 
   .el-table__header {
-    overflow: hidden;
     border-bottom-right-radius: 8px;
     border-bottom-left-radius: 8px;
 
@@ -146,6 +145,14 @@ defineExpose({
           border-right: none;
         }
       }
+
+      &:first-child {
+        border-bottom-left-radius: 8px;
+      }
+
+      &:last-child {
+        border-bottom-right-radius: 8px;
+      }
     }
   }
 
@@ -175,6 +182,12 @@ defineExpose({
         border-right: var(--el-table-border);
         border-color: var(--el-table-header-text-color);
       }
+
+      &:last-child {
+        .cell {
+          border-right: none;
+        }
+      }
     }
   }