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%; } /* 全局滚动条样式 */