From 269266d2615bc5bfc6ae42f555e39d3bf5de9ef2 Mon Sep 17 00:00:00 2001 From: coderxslee Date: Thu, 3 Apr 2025 08:07:31 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=20GiTable=20=E8=A1=A8?= =?UTF-8?q?=E6=A0=BC=E5=8F=B3=E4=B8=8B=E8=A7=92=E5=A4=96=E9=83=A8=E8=BE=B9?= =?UTF-8?q?=E6=A1=86=E4=B8=8D=E5=AE=8C=E6=95=B4=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/GiTable/src/GiTable.vue | 7 ++++++- src/styles/global.scss | 5 +++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/src/components/GiTable/src/GiTable.vue b/src/components/GiTable/src/GiTable.vue index 677c851..ffff94c 100644 --- a/src/components/GiTable/src/GiTable.vue +++ b/src/components/GiTable/src/GiTable.vue @@ -61,7 +61,7 @@ v-bind="tableProps" :stripe="stripe" :size="size" - :bordered="{ cell: isBordered }" + :bordered="{ cell: isBordered, wrapper: isBordered }" :columns="visibleColumns" :scrollbar="true" :data="data" @@ -270,6 +270,11 @@ defineExpose({ height: 100%; } + // 确保垂直滚动时右侧边框显示 + :deep(.arco-table-scroll-y) { + border-right: 1px solid var(--color-border-table); + } + // 控制表格最后一行的下边框显示 :deep(.arco-table-border .arco-table-scroll-y .arco-table-body .arco-table-tr:last-of-type .arco-table-td, .arco-table-border .arco-table-scroll-y tfoot .arco-table-tr:last-of-type .arco-table-td) { diff --git a/src/styles/global.scss b/src/styles/global.scss index ecfda8f..2d3062e 100644 --- a/src/styles/global.scss +++ b/src/styles/global.scss @@ -275,6 +275,11 @@ } } +// 确保表格右侧边框显示 +.arco-table-scroll-y { + border-right: 1px solid var(--color-border-table); +} + // 表格类名,高度自适应,分页始终固定在最底部 .gi_full_table { flex: 1;