From 5bbabc01e9dfb353a4e354fc83e9fa17f80e5d7f Mon Sep 17 00:00:00 2001 From: Your Name Date: Tue, 13 Jan 2026 19:24:25 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=89=A3=E5=88=86=E6=98=8E?= =?UTF-8?q?=E7=BB=86=E5=BC=B9=E7=AA=97=E8=A1=A8=E6=A0=BC=E6=A0=B7=E5=BC=8F?= =?UTF-8?q?=EF=BC=8C=E4=BD=BF=E7=94=A8!important=E8=A6=86=E7=9B=96?= =?UTF-8?q?=E5=85=A8=E5=B1=80=E6=A0=B7=E5=BC=8F=EF=BC=8C=E7=A1=AE=E4=BF=9D?= =?UTF-8?q?=E4=B8=8E=E7=94=A8=E6=88=B7=E7=AE=A1=E7=90=86=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=E4=B8=80=E8=87=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/views/Analytics.vue | 44 ++++++++++++++++++++++---------- 1 file changed, 30 insertions(+), 14 deletions(-) diff --git a/frontend/src/views/Analytics.vue b/frontend/src/views/Analytics.vue index 86b74dc..54d8689 100644 --- a/frontend/src/views/Analytics.vue +++ b/frontend/src/views/Analytics.vue @@ -1873,36 +1873,52 @@ onMounted(() => { padding: 24px; } - // 表格样式 - 与用户管理页面严格一致 + // 表格样式 - 与用户管理页面严格一致(使用 !important 覆盖全局样式) :deep(.ant-table) { - background: transparent; + background: transparent !important; + + .ant-table-container { + border: none !important; + } .ant-table-thead > tr > th { - background: $bg-tertiary; - color: $text-secondary; - font-weight: $font-weight-semibold; - border-bottom: 1px solid $border-color; - padding: 12px 16px; + background: $bg-tertiary !important; + color: $text-secondary !important; + font-weight: $font-weight-semibold !important; + border-bottom: 1px solid $border-color !important; + padding: 12px 16px !important; + border-top: none !important; + border-left: none !important; + border-right: none !important; &::before { - display: none; + display: none !important; } } .ant-table-tbody > tr { - background: transparent; + background: transparent !important; &:hover > td { - background: rgba($brand-primary, 0.03); + background: rgba($brand-primary, 0.03) !important; } > td { - background: transparent; - border-bottom: 1px solid $border-color; - padding: 16px; - color: $text-primary; + background: transparent !important; + border-bottom: 1px solid $border-color !important; + padding: 16px !important; + color: $text-primary !important; + border-left: none !important; + border-right: none !important; + border-top: none !important; } } + + // 移除所有其他边框 + .ant-table-cell { + border-left: none !important; + border-right: none !important; + } } }