labull-framework 0.1.21 → 0.1.23
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 +5 -3
- package/dist/magic-block.js +1459 -1360
- package/dist/style.css +1 -1
- package/dist/types/magic-block-MagicBlockPage.vue.d.ts +2 -1
- package/dist/types/magic-block-declared.d.ts +56 -0
- package/dist/types/magic-block-manifest.d.ts +0 -21
- package/dist/types/magic-block-real.d.ts +1 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -66,9 +66,11 @@ magic block:**一条路由 = 一个块** —— **块外面不放任何东西*
|
|
|
66
66
|
`index.open.html`),块占满这条标签页:
|
|
67
67
|
|
|
68
68
|
```ts
|
|
69
|
-
// main.ts
|
|
70
|
-
|
|
71
|
-
|
|
69
|
+
// main.ts:这一条路由就是这个块(没有页面文件)。
|
|
70
|
+
// 🔴 身份写在 `meta.blockUuid`(要与块包清单 `magic-block.open.yaml` 里的 `id` 逐字一致);
|
|
71
|
+
// 老写法 `props: { uuid }` 照旧认得,两个都写时以 `meta.blockUuid` 为准。
|
|
72
|
+
{ path: '/orders', component: MagicBlockPage,
|
|
73
|
+
meta: { blockUuid: '6f1c…', title: '订单', icon: 'pi pi-list' } }
|
|
72
74
|
```
|
|
73
75
|
```js
|
|
74
76
|
// 块自己的 index.open.html 里:要什么问宿主
|