From 07325d4c5eb6662dec0bb3e280e3944050d3d996 Mon Sep 17 00:00:00 2001 From: dap <15891557205@163.com> Date: Fri, 29 Nov 2024 11:52:14 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20vxe-table=E7=9A=84=E5=A4=B4=E9=83=A8?= =?UTF-8?q?=E9=A2=9C=E8=89=B2=E5=92=8Cantd=E4=BF=9D=E6=8C=81=E4=B8=80?= =?UTF-8?q?=E8=87=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/effects/plugins/src/vxe-table/style.css | 6 +++++- packages/styles/src/antd/index.css | 8 -------- 2 files changed, 5 insertions(+), 9 deletions(-) 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 只加载表格 不加载上面的表单 */