Files
shrimp-admin/package.json
T
wc24 00c2211271 0.8.2 顶栏改走 resolveVue,撤掉 headerWidgets
headerWidgets 是往 userbar 里插组件的口子:VueAdmin 收一个组件数组、userbar 用
v-for 渲染。它绕开了本包唯一的覆盖机制(sources 路径后缀),等于给同一件事开了
第二条路——而且是条窄路,只能往那一处塞,插进去的东西也没法参与 userbar 自身的
布局与样式。

撤掉它,同时把真问题补上:userbar 之前根本不可覆盖(layout.vue 静态 import),
消费侧就算按约定放了 shrimp/components/userbar.vue 也会被静默忽略——这才是当初
需要 headerWidgets 的原因。现在 userbar 走 resolveVue,整条顶栏都能换。

代价:想改顶栏得整份重写内置那 92 行,不能只插一个部件。这是有意的,覆盖颗粒度
本来就停在入口级(README 那张表),不为单个部件开代理。

README 同步:补上 userbar 这一行,并写明表外路径会被静默忽略、不报错。
2026-08-11 12:18:48 +08:00

44 lines
1.2 KiB
JSON

{
"name": "shrimp-admin",
"version": "0.8.2",
"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"
}
}