mvframe 1.0.75 → 1.0.77
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/README.cn.md +10 -2
- package/README.md +10 -2
- package/dist/css/cpt.css +1 -1
- package/dist/vendor.js +2009 -3841
- package/dist/vtable.js +1878 -0
- package/package.json +1 -1
- package/scripts/scaffold-app.js +5 -0
package/package.json
CHANGED
package/scripts/scaffold-app.js
CHANGED
|
@@ -234,6 +234,9 @@ const launchRouteGuard = (to, from, next) => {
|
|
|
234
234
|
};
|
|
235
235
|
|
|
236
236
|
app.use(mvframe, {
|
|
237
|
+
components: {
|
|
238
|
+
async: ["VTable"],
|
|
239
|
+
},
|
|
237
240
|
vueRouter: {
|
|
238
241
|
routes,
|
|
239
242
|
guard: (router) => {
|
|
@@ -832,6 +835,8 @@ yarn exec mvframe-d
|
|
|
832
835
|
|
|
833
836
|
自动生成的 \`vite.config.js\` 已包含 \`unplugin-auto-import\`;\`dts: true\` 时类型默认写在项目根 \`auto-imports.d.ts\`。
|
|
834
837
|
|
|
838
|
+
\`src/main.js\` 默认在 \`app.use(mvframe, { components: { async: ["VTable"] } })\` 中异步注册 \`VTable\`。这样只有页面实际渲染 \`<VTable>\` 时才加载 VisActor 相关 chunk,避免 \`@visactor/vtable\` 进入宿主首屏同步链。
|
|
839
|
+
|
|
835
840
|
## Launch(登录壳)
|
|
836
841
|
|
|
837
842
|
雏形与 **mvframe demo** 对齐:\`pinia/chip/launch.js\`(顶层 \`login\` + \`userinfo\`)、\`App.vue\`(\`<AdminEntry v-if />\` / \`<Entry v-else />\`)、\`main.js\` 内 \`import { store, pinia } from "mvframe/store"\` + \`launchRouteGuard\` + \`useAdmin\` / \`adminPermission\` / \`noaccess\`。未登录仅 \`meta.public\`;已登录进 \`Entry\` 会重定向到 \`Overview_Home\`(\`/overview\`)。若不需门禁,将 \`useAdmin\` 改为 \`false\` 并删除 \`adminPermission\` 与 \`noaccess\`。
|