Browse Source

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

pull/1240/head
江麻妞 5 years ago
committed by GitHub
parent
commit
30fa4cfa2a
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      build/vite/plugin/theme.ts
  2. 7
      src/components/Table/src/BasicTable.vue

2
build/vite/plugin/theme.ts

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

7
src/components/Table/src/BasicTable.vue

@ -334,6 +334,13 @@
@prefix-cls: ~'@{namespace}-basic-table'; @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} { .@{prefix-cls} {
max-width: 100%; max-width: 100%;

Loading…
Cancel
Save