From bbbaa36310bb21a9c32c4c7466a37cbdf44dd46b Mon Sep 17 00:00:00 2001 From: liufumingren Date: Tue, 3 Nov 2026 03:46:58 +0800 Subject: [PATCH] =?UTF-8?q?style(frontend):=20=E5=95=86=E5=93=81=E5=B1=9E?= =?UTF-8?q?=E6=80=A7=E9=A1=B5=E5=BA=95=E9=83=A8=E5=88=86=E9=A1=B5=E4=B8=8E?= =?UTF-8?q?=E5=88=97=E8=A1=A8=E7=BB=9F=E4=B8=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 属性页 el-tabs(左侧页签)的 __content 与 tab-pane 未设置高度, 面板的 height:100% 因此失效,分页跟着表格滚走 - 补齐 .el-tabs__content / .el-tab-pane 的 height:100%(tab-pane 改为 flex 列 + min-height:0), 与订单页同一套写法;面板内 .attr-panel 补 min-height:0 - 效果:商品分类/品牌/单位三个页签的分页均固定在底部,只有表格主体滚动 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- frontend/src/views/ProductAttribute/Index.vue | 11 +++++++++++ .../views/ProductAttribute/ProductAttributePanel.vue | 1 + 2 files changed, 12 insertions(+) diff --git a/frontend/src/views/ProductAttribute/Index.vue b/frontend/src/views/ProductAttribute/Index.vue index 370ba8d..cff4d05 100644 --- a/frontend/src/views/ProductAttribute/Index.vue +++ b/frontend/src/views/ProductAttribute/Index.vue @@ -48,4 +48,15 @@ const tabs: { key: AttrType; label: string }[] = [ .attr-card :deep(.el-tabs--left .el-tabs__header) { margin-right: 16px; } +/* 页签内容撑满,面板内部才能把分页固定到底部(与订单页一致) */ +.attr-card :deep(.el-tabs--left .el-tabs__content), +.attr-card :deep(.el-tab-pane) { + height: 100%; + overflow: hidden; +} +.attr-card :deep(.el-tab-pane) { + display: flex; + flex-direction: column; + min-height: 0; +} diff --git a/frontend/src/views/ProductAttribute/ProductAttributePanel.vue b/frontend/src/views/ProductAttribute/ProductAttributePanel.vue index f88d229..ffb604c 100644 --- a/frontend/src/views/ProductAttribute/ProductAttributePanel.vue +++ b/frontend/src/views/ProductAttribute/ProductAttributePanel.vue @@ -331,6 +331,7 @@ onMounted(fetchList)