labull-framework 0.1.28 → 0.1.29
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.md +3 -1
- package/dist/{chunk-ProductShell.vue_vue_type_style_index_0_scoped_06035587_lang-BpRKKThg.js → chunk-ProductShell.vue_vue_type_style_index_0_scoped_06035587_lang-Fky1ghd2.js} +3 -3
- package/dist/{chunk-index-BN-lnG-w.js → chunk-index-DGTXheeR.js} +1 -1
- package/dist/index.js +2 -2
- package/dist/magic-block.js +1102 -1057
- package/dist/types/magic-block-declared.d.ts +36 -0
- package/dist/types/magic-block-real.d.ts +3 -2
- package/dist/ui.js +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -63,7 +63,9 @@ const menu: SideItem[] = [
|
|
|
63
63
|
```
|
|
64
64
|
|
|
65
65
|
magic block:**一条路由 = 一个块** —— **块外面不放任何东西**(标题 / 按钮 / 参数展示都写进块自己的
|
|
66
|
-
`index.open.html
|
|
66
|
+
`index.open.html`),块占满这条标签页。这条不只是"请注意"级的约定:块页会核对"这条路由渲染的
|
|
67
|
+
是不是我",被人套一层包装页(`MyOrderPage.vue` 里 `<MagicBlockPage/>` 再加点东西)时它在
|
|
68
|
+
`vite dev` 里**直接抛**、打包产物里 `console.error` —— 违规的页面打不开:
|
|
67
69
|
|
|
68
70
|
```ts
|
|
69
71
|
// main.ts:这一条路由就是这个块(没有页面文件)。
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { reactive as h, computed as p, ref as y,
|
|
1
|
+
import { reactive as h, computed as p, ref as y, inject as T, provide as g } from "vue";
|
|
2
2
|
import { useRouter as w } from "vue-router";
|
|
3
3
|
const c = h({ tabs: [], active: "" });
|
|
4
4
|
let r = null;
|
|
@@ -103,10 +103,10 @@ function M(t) {
|
|
|
103
103
|
C(t.key, a, l);
|
|
104
104
|
}
|
|
105
105
|
};
|
|
106
|
-
return
|
|
106
|
+
return g(m, i), i;
|
|
107
107
|
}
|
|
108
108
|
function P() {
|
|
109
|
-
const t =
|
|
109
|
+
const t = T(m, null);
|
|
110
110
|
if (!t) throw new Error("[labull] 这里不在标签页里:页面与 magic block 必须放在外壳的标签内容区(标签页)里。");
|
|
111
111
|
return t;
|
|
112
112
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as z, ref as S, computed as x, watch as ae, onMounted as X, onBeforeUnmount as Y, openBlock as t, createElementBlock as l, normalizeClass as $, unref as d, createElementVNode as e, Fragment as T, withDirectives as te, withKeys as Q, withModifiers as H, vModelText as _e, createCommentVNode as _, renderList as D, toDisplayString as w, nextTick as me, createBlock as ue, resolveDynamicComponent as ke, normalizeProps as ye, mergeProps as we, createTextVNode as W, renderSlot as Z, createVNode as F, vShow as oe } from "vue";
|
|
2
2
|
import { useRouter as ne, useRoute as re, RouterView as $e } from "vue-router";
|
|
3
|
-
import { e as se, o as le, _ as J, d as ce, p as ge, f as Ce, i as ie } from "./chunk-ProductShell.vue_vue_type_style_index_0_scoped_06035587_lang-
|
|
3
|
+
import { e as se, o as le, _ as J, d as ce, p as ge, f as Ce, i as ie } from "./chunk-ProductShell.vue_vue_type_style_index_0_scoped_06035587_lang-Fky1ghd2.js";
|
|
4
4
|
import { u as Pe, e as q, g as xe, i as Le, d as Ee, l as Te, a as Se } from "./chunk-index-BWpDbB19.js";
|
|
5
5
|
const Me = ["onKeydown"], Ie = {
|
|
6
6
|
key: 2,
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { A as e, a as t, C as r, b as o, c as l, d as i, e as u, f as c, g as n, h as T, l as b, i as A, j as p, u as d } from "./chunk-index-BWpDbB19.js";
|
|
2
|
-
import { A as S, P as E, a as _, b as P, _ as U, U as f, i as g, l as I } from "./chunk-index-
|
|
3
|
-
import { T as C, a as N, c as m, f as D, i as L, b as v, o as M, p as B, s as H, u as O, d as R } from "./chunk-ProductShell.vue_vue_type_style_index_0_scoped_06035587_lang-
|
|
2
|
+
import { A as S, P as E, a as _, b as P, _ as U, U as f, i as g, l as I } from "./chunk-index-DGTXheeR.js";
|
|
3
|
+
import { T as C, a as N, c as m, f as D, i as L, b as v, o as M, p as B, s as H, u as O, d as R } from "./chunk-ProductShell.vue_vue_type_style_index_0_scoped_06035587_lang-Fky1ghd2.js";
|
|
4
4
|
export {
|
|
5
5
|
e as API_BASE,
|
|
6
6
|
t as AUTH_DEADLINE_MS,
|