mvframe 1.1.12 → 1.1.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -62,6 +62,7 @@ app.use(mvframe, {
|
|
|
62
62
|
| 项 | 建议 |
|
|
63
63
|
|----|------|
|
|
64
64
|
| `resolve.alias` | `@` → 业务 `src`;若直接引用 composition:`@cps` → `mvframe/.../composition` 或封装路径 |
|
|
65
|
+
| `resolve.dedupe` | 必须包含 `vue`、`vue-router`、`pinia`,避免宿主项目与 `mvframe` 解析出多份实例 |
|
|
65
66
|
| `css.preprocessorOptions.scss.additionalData` | 注入 mvframe 的 `chip/mixin.scss`(或与业务统一的 mixin) |
|
|
66
67
|
| 类型 | 若用 auto-import,为 `vue` / `vue-router` 生成 d.ts |
|
|
67
68
|
|
|
@@ -77,6 +78,7 @@ app.use(mvframe, {
|
|
|
77
78
|
## 6. 自检清单(Agent 生成/审查时用)
|
|
78
79
|
|
|
79
80
|
- [ ] Element Plus 在 mvframe 之前 `use`
|
|
81
|
+
- [ ] Vite `resolve.dedupe` 已包含 `vue`、`vue-router`、`pinia`
|
|
80
82
|
- [ ] 已引入 `index.scss`(或等价主题入口),且 SCSS 与 mixin 策略与库一致
|
|
81
83
|
- [ ] `routes` 已传入,`Frame` 的 `menu.routes` 同源
|
|
82
84
|
- [ ] 需要多 Tab 时 `pinia.useTab: true`
|