Forráskód Böngészése

fix(table): 修复表格背景颜色再深色模式下会被穿透问题 (#1133)

江麻妞 3 éve
szülő
commit
30fa4cfa2a
2 módosított fájl, 8 hozzáadás és 1 törlés
  1. 1 1
      build/vite/plugin/theme.ts
  2. 7 0
      src/components/Table/src/BasicTable.vue

+ 1 - 1
build/vite/plugin/theme.ts

@@ -66,7 +66,7 @@ export function configThemePlugin(isBuild: boolean): Plugin[] {
         'border-color-base': '#303030',
         // 'border-color-split': '#30363d',
         'item-active-bg': '#111b26',
-        'app-content-background': 'rgb(255 255 255 / 4%)',
+        'app-content-background': '#1e1e1e',
         'tree-node-selected-bg': '#11263c',
 
         'alert-success-border-color': '#274916',

+ 7 - 0
src/components/Table/src/BasicTable.vue

@@ -334,6 +334,13 @@
 
   @prefix-cls: ~'@{namespace}-basic-table';
 
+  [data-theme='dark'] {
+    .ant-table-tbody > tr:hover.ant-table-row-selected > td,
+    .ant-table-tbody > tr.ant-table-row-selected td {
+      background-color: #262626;
+    }
+  }
+
   .@{prefix-cls} {
     max-width: 100%;