From eaf99b5efa9a329eb23d5e108c9e07959abac643 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Thu, 23 Apr 2026 22:16:29 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=88=97=E8=A1=A8=E9=A1=B5=E8=A1=A8?= =?UTF-8?q?=E6=A0=BC=E8=87=AA=E9=80=82=E5=BA=94=E5=89=A9=E4=BD=99=E9=AB=98?= =?UTF-8?q?=E5=BA=A6=EF=BC=8C=E5=88=86=E9=A1=B5=E8=B4=B4=E5=BA=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 新增通用 .list-page 类:flex 列布局、height:100% - 表格外包 .table-wrap(flex:1, min-height:0),el-table 设 height="100%" - 分页 flex-shrink:0 贴底 - 材料/供应商/品牌/用户 四个列表页启用 Co-Authored-By: Claude Opus 4.7 --- frontend/src/styles/base.css | 27 +++++++++++++++++++++++++++ frontend/src/views/BrandManage.vue | 6 ++++-- frontend/src/views/FactoryManage.vue | 6 ++++-- frontend/src/views/MaterialManage.vue | 6 ++++-- frontend/src/views/UserManage.vue | 6 ++++-- 5 files changed, 43 insertions(+), 8 deletions(-) diff --git a/frontend/src/styles/base.css b/frontend/src/styles/base.css index 4ae14e9..b521dde 100644 --- a/frontend/src/styles/base.css +++ b/frontend/src/styles/base.css @@ -48,6 +48,33 @@ a { padding: 20px 24px 28px; } +.list-page { + display: flex; + flex-direction: column; + height: 100%; + padding: 20px 24px 16px; + min-height: 0; +} + +.list-page .toolbar { + flex-shrink: 0; +} + +.list-page .page-title { + flex-shrink: 0; +} + +.list-page .table-wrap { + flex: 1 1 auto; + min-height: 0; + overflow: hidden; +} + +.list-page .pagination { + flex-shrink: 0; + margin-top: 12px; +} + .page-title { font-size: 20px; font-weight: 600; diff --git a/frontend/src/views/BrandManage.vue b/frontend/src/views/BrandManage.vue index 5940993..e807633 100644 --- a/frontend/src/views/BrandManage.vue +++ b/frontend/src/views/BrandManage.vue @@ -1,5 +1,5 @@ +