diff --git a/packages/effects/plugins/src/vxe-table/style.css b/packages/effects/plugins/src/vxe-table/style.css index cafa397f..31e57668 100644 --- a/packages/effects/plugins/src/vxe-table/style.css +++ b/packages/effects/plugins/src/vxe-table/style.css @@ -30,7 +30,7 @@ --vxe-ui-loading-background-color: hsl(var(--overlay-content)); /* table */ - --vxe-ui-table-header-background-color: hsl(var(--accent)); + --vxe-ui-table-header-background-color: hsl(0deg 0% 98%); --vxe-ui-table-border-color: hsl(var(--border)); --vxe-ui-table-row-hover-background-color: hsl(var(--accent-hover)); --vxe-ui-table-row-striped-background-color: hsl(var(--accent) / 60%); @@ -49,6 +49,10 @@ /* --vxe-ui-table-fixed-scrolling-box-shadow-color: rgb(0 0 0 / 80%); */ } +html[data-vxe-ui-theme='dark'] .vxe-grid { + --vxe-ui-table-header-background-color: hsl(var(--accent) / 50%); +} + .vxe-pager { .vxe-pager--prev-btn:not(.is--disabled):active, .vxe-pager--next-btn:not(.is--disabled):active, diff --git a/packages/styles/src/antd/index.css b/packages/styles/src/antd/index.css index 79d2713f..cac0c5d6 100644 --- a/packages/styles/src/antd/index.css +++ b/packages/styles/src/antd/index.css @@ -78,14 +78,6 @@ html { --vxe-ui-border-radius: 8px !important; } -/** -vxe表格头部背景色 与antd保持一致 只需要处理light模式 夜间模式用vxe默认的 -*/ -html[data-vxe-ui-theme='light'] { - /** 只支持hsl格式 */ - --vxe-ui-table-header-background-color: hsl(0deg 0% 98%) !important; -} - /** vxe表格loading 只加载表格 不加载上面的表单 */