From 2ce6fd6d2fbf259dc55aa8eb735308f1379ae04c Mon Sep 17 00:00:00 2001 From: wc24 Date: Mon, 10 Aug 2026 19:55:52 +0800 Subject: [PATCH] =?UTF-8?q?0.8.1:=20=E5=B8=83=E5=B1=80=E4=B8=8D=E5=86=8D?= =?UTF-8?q?=E4=BE=9D=E8=B5=96=E6=B6=88=E8=B4=B9=E4=BE=A7=E7=BB=99=E6=8C=82?= =?UTF-8?q?=E8=BD=BD=E7=82=B9=E5=8A=A0=20class=3D"aminui"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit .aminui-wrapper 补 height:100%。#app 本来就有 height:100%(app.scss 开头), 但它是块级容器,wrapper 的 flex:1 在块级父容器里空转,布局塌成内容高度—— 侧边栏比页面矮一截,还跟着表格异步加载忽长忽短。不报错、页面照常打开, 所以接入方发现不了,只会当成 CSS 小毛病。 父级确实是 .aminui 时 flex:1 1 0% 接管尺寸,这行等价不冲突,存量消费侧不受影响。 已验证:atf-admin 删掉 index.html 上的 class="aminui" 后, project / point / requirement 三个页面侧边栏高度均为 851(此前缺类时 634)。 --- package.json | 2 +- src/style/app.scss | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index f41da21..865ebdc 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "shrimp-admin", - "version": "0.8.0", + "version": "0.8.1", "private": true, "description": "Shrimp 框架前端 — 消费 ShrimpServer + ShrimpTable 契约的经典 Vue3 + Element Plus 实现", "main": "src/index.ts", diff --git a/src/style/app.scss b/src/style/app.scss index 8bdf1b5..4a486a7 100644 --- a/src/style/app.scss +++ b/src/style/app.scss @@ -55,6 +55,11 @@ textarea { display: flex; flex: 1; overflow: auto; + /* 挂载点没加 class="aminui" 时的兜底:#app 已经是 height:100%(本文件开头), + 但它是块级容器,上面那行 flex:1 在块级父容器里不生效,布局会塌成内容高度—— + 侧边栏比页面矮一截、还跟着表格异步加载忽长忽短,且不报错、页面照常打开。 + 父级确实是 .aminui 时,flex:1 1 0% 接管尺寸,这行等价不冲突。 */ + height: 100%; } /* 全局滚动条样式 */