.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)。
44 lines
1.2 KiB
JSON
44 lines
1.2 KiB
JSON
{
|
|
"name": "shrimp-admin",
|
|
"version": "0.8.1",
|
|
"private": true,
|
|
"description": "Shrimp 框架前端 — 消费 ShrimpServer + ShrimpTable 契约的经典 Vue3 + Element Plus 实现",
|
|
"main": "src/index.ts",
|
|
"types": "src/index.ts",
|
|
"exports": {
|
|
".": {
|
|
"types": "./src/index.ts",
|
|
"default": "./src/index.ts"
|
|
},
|
|
"./style": "./src/style/style.scss",
|
|
"./package.json": "./package.json"
|
|
},
|
|
"files": [
|
|
"src",
|
|
"README.md"
|
|
],
|
|
"scripts": {
|
|
"check:contract": "node scripts/check-contract.mjs",
|
|
"sync:contract": "node scripts/check-contract.mjs --fix"
|
|
},
|
|
"peerDependencies": {
|
|
"vue": "^3.3.0",
|
|
"vue-router": "^4.0.0",
|
|
"vue-i18n": "^9.0.0",
|
|
"axios": "^1.0.0",
|
|
"element-plus": "^2.0.0",
|
|
"@element-plus/icons-vue": "^2.0.0"
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "^20.0.0",
|
|
"typescript": "^5.3.0",
|
|
"vite": "^4.4.5",
|
|
"vue": "^3.3.4",
|
|
"vue-router": "^4.1.6",
|
|
"vue-i18n": "^9.1.9",
|
|
"axios": "^1.3.4",
|
|
"element-plus": "^2.10.4",
|
|
"@element-plus/icons-vue": "^2.1.0"
|
|
}
|
|
}
|