mvframe 1.0.6 → 1.0.7
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.
- package/dist/vendor.js +1 -1
- package/package.json +1 -1
- package/scripts/scaffold-app.js +6 -0
package/dist/vendor.js
CHANGED
|
@@ -63,7 +63,7 @@ const _ = /* @__PURE__ */ Object.assign({ "../component/BtnGroup/index.vue": v,
|
|
|
63
63
|
}, w = {
|
|
64
64
|
name: "Matt Avias Frame",
|
|
65
65
|
copyright: "©2026",
|
|
66
|
-
version: "1.0.
|
|
66
|
+
version: "1.0.7",
|
|
67
67
|
author: "Matt Avias",
|
|
68
68
|
date: "2026-02-26",
|
|
69
69
|
/** Table 等表格默认;业务在 app.use(mvframe, { config }) 里覆盖 */
|
package/package.json
CHANGED
package/scripts/scaffold-app.js
CHANGED
|
@@ -35,8 +35,10 @@ function write(rel, content) {
|
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
/** 与 main.js / vite.config 模板一致;版本号与 mvframe 本仓库对齐思路,可随发布调整 */
|
|
38
|
+
// @vue/shared 为 Vue 3 内部包,传递依赖在部分包管理器下未提升时 Vite 解析失败,故写入直连依赖
|
|
38
39
|
const SCAFFOLD_DEPENDENCIES = {
|
|
39
40
|
vue: "^3.5.0",
|
|
41
|
+
"@vue/shared": "^3.5.0",
|
|
40
42
|
"vue-router": "^4.6.0",
|
|
41
43
|
pinia: "^3.0.0",
|
|
42
44
|
mvframe: "^1.0.0",
|
|
@@ -427,6 +429,10 @@ yarn install
|
|
|
427
429
|
|
|
428
430
|
自动生成的 \`vite.config.js\` 已包含 \`unplugin-auto-import\`;\`dts: true\` 时类型默认写在项目根 \`auto-imports.d.ts\`。
|
|
429
431
|
|
|
432
|
+
### 报错 \`Could not resolve '@vue/shared'\`
|
|
433
|
+
|
|
434
|
+
这是 **Vue 3 自带的底层包**,一般不必手写;在 **pnpm / 严格 node_modules** 等环境下可能未被提升到可被 Vite 解析的位置。脚手架已在 \`dependencies\` 中合并 \`@vue/shared\`(与 \`vue\` 同主版本);老项目可手动执行 \`yarn add @vue/shared@^3.5\`。
|
|
435
|
+
|
|
430
436
|
## 样式
|
|
431
437
|
|
|
432
438
|
在 \`src/assets/style/index.scss\` 中取消注释并指向实际 mvframe 样式路径(源码或 dist)。
|