Commit 30fa4cfa2ab6229efc67224fd082e32da0a95d49
Committed by
GitHub
1 parent
6e7f6f82
fix(table): 修复表格背景颜色再深色模式下会被穿透问题 (#1133)
Showing
2 changed files
with
8 additions
and
1 deletions
build/vite/plugin/theme.ts
... | ... | @@ -66,7 +66,7 @@ export function configThemePlugin(isBuild: boolean): Plugin[] { |
66 | 66 | 'border-color-base': '#303030', |
67 | 67 | // 'border-color-split': '#30363d', |
68 | 68 | 'item-active-bg': '#111b26', |
69 | - 'app-content-background': 'rgb(255 255 255 / 4%)', | |
69 | + 'app-content-background': '#1e1e1e', | |
70 | 70 | 'tree-node-selected-bg': '#11263c', |
71 | 71 | |
72 | 72 | 'alert-success-border-color': '#274916', | ... | ... |
src/components/Table/src/BasicTable.vue
... | ... | @@ -334,6 +334,13 @@ |
334 | 334 | |
335 | 335 | @prefix-cls: ~'@{namespace}-basic-table'; |
336 | 336 | |
337 | + [data-theme='dark'] { | |
338 | + .ant-table-tbody > tr:hover.ant-table-row-selected > td, | |
339 | + .ant-table-tbody > tr.ant-table-row-selected td { | |
340 | + background-color: #262626; | |
341 | + } | |
342 | + } | |
343 | + | |
337 | 344 | .@{prefix-cls} { |
338 | 345 | max-width: 100%; |
339 | 346 | ... | ... |