@liujitcn/kratos-uni-app-system 0.0.91 → 0.0.92

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.
Files changed (2) hide show
  1. package/README.md +3 -10
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -37,27 +37,20 @@ packages/modules/system
37
37
 
38
38
  内置 [我的页面](src/views/pages/my/my.vue) 已使用该组件,并在插槽中挂载 [MyExtensions 空实现](src/views/pages/my/components/MyExtensions.vue)。空实现保留一个 `view` 作为业务内容容器,不显示占位卡片;项目可以按这个结构组织自己的业务内容。
39
39
 
40
- 在项目业务模块的 `src/views/pages/my/my.vue` 复用公开组件入口:
40
+ 当前模块的 `pages/my/my.vue` 通过公开组件入口装配个人中心:
41
41
 
42
42
  ```vue
43
43
  <script setup lang="ts">
44
44
  import KratosMyPage from '@liujitcn/kratos-uni-app-system/components/KratosMyPage.vue'
45
- import OrderSection from './components/OrderSection.vue'
46
- import ServiceSection from './components/ServiceSection.vue'
47
45
  </script>
48
46
 
49
47
  <template>
50
- <KratosMyPage>
51
- <template #extensions>
52
- <OrderSection />
53
- <ServiceSection />
54
- </template>
55
- </KratosMyPage>
48
+ <KratosMyPage />
56
49
  </template>
57
50
  ```
58
51
 
59
52
  项目模块的 `pages` 声明 `'pages/my/my': { style: { navigationStyle: 'custom', navigationBarTitleText: '' } }`,`views` 声明 `PROFILE_HOME: 'pages/my/my'`,并在宿主 `module-manifest.ts` 中排在 system 模块之后。使用相同的物理路由可以保留微信原生 tab 切换;页面 wrapper 和底部 tabBar 继续由构建插件生成,不在业务页面重复挂载。
60
53
 
61
- 插槽可以直接放多个业务卡片,不需要复制公共页面或给顶部入口提供替换内容。需要登录态、用户资料或导航时,通过 core 的公开 store 与导航 API 获取。
54
+ 当前页面保留空的 `extensions` 插槽,宿主可以在本仓库的模块清单中装配业务内容;公共页面、顶部入口和导航逻辑仍由 System 维护。需要登录态、用户资料或导航时,通过 core 的公开 store 与导航 API 获取。
62
55
 
63
56
  模块装配与动态导航约定见 [workspace 文档](../../../README.md)。
package/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  "type": "git",
8
8
  "url": "git@github.com:liujitcn/kratos-admin.git"
9
9
  },
10
- "version": "0.0.91",
10
+ "version": "0.0.92",
11
11
  "type": "module",
12
12
  "files": [
13
13
  "dist",
@@ -36,7 +36,7 @@
36
36
  "@dcloudio/uni-app": "3.0.0-5010520260709002",
37
37
  "@dcloudio/uni-ui": "^1.4.28",
38
38
  "vue": "^3.4.21",
39
- "@liujitcn/kratos-uni-app-core": "^0.0.91"
39
+ "@liujitcn/kratos-uni-app-core": "^0.0.92"
40
40
  },
41
41
  "devDependencies": {
42
42
  "esbuild": "^0.20.2",