@liujitcn/kratos-taro-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 -8
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -19,27 +19,22 @@
19
19
 
20
20
  公共组件与样式位于 `src/components/KratosMyPage.tsx` 和 `KratosMyPage.scss`。内置 [我的页面](src/views/pages/my/my.tsx) 已使用该组件,并挂载 [MyExtensions 空实现](src/views/pages/my/components/MyExtensions.tsx)。空实现返回 `null`,不显示占位卡片;项目可以按这个结构组织自己的业务内容。
21
21
 
22
- 在项目业务模块的 `src/views/pages/my/my.tsx` 复用公开组件入口:
22
+ 当前模块的 `src/views/pages/my/my.tsx` 通过公开组件入口装配个人中心:
23
23
 
24
24
  ```tsx
25
25
  import KratosMyPage from '@liujitcn/kratos-taro-app-system/components/KratosMyPage'
26
- import OrderSection from './components/OrderSection'
27
- import ServiceSection from './components/ServiceSection'
28
26
 
29
27
  /** MyPage 组合公共个人中心与项目业务卡片。 */
30
28
  export default function MyPage() {
31
29
  return (
32
- <KratosMyPage>
33
- <OrderSection />
34
- <ServiceSection />
35
- </KratosMyPage>
30
+ <KratosMyPage />
36
31
  )
37
32
  }
38
33
  ```
39
34
 
40
35
  项目模块的 `pages` 声明 `'pages/my/my': { style: { navigationStyle: 'custom', navigationBarTitleText: '' } }`,`views` 声明 `PROFILE_HOME: 'pages/my/my'`,并在宿主 `module-manifest.ts` 中排在 system 模块之后。构建期 `buildModule.pages` 复用相同页面配置。使用相同的物理路由可以保留微信原生 tab 切换;页面 wrapper 和底部 tabBar 继续由 runner 生成,不在业务页面重复挂载。
41
36
 
42
- 扩展区可以直接放多个业务卡片,不需要复制公共页面或给顶部入口提供替换内容。需要登录态、用户资料或导航时,通过 core 的公开 store 与导航 API 获取。
37
+ 当前页面保留空的 children 扩展区,宿主可以在本仓库的模块清单中装配业务内容;公共页面、顶部入口和导航逻辑仍由 System 维护。需要登录态、用户资料或导航时,通过 core 的公开 store 与导航 API 获取。
43
38
 
44
39
  ## AI 助手
45
40
 
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",
@@ -39,8 +39,8 @@
39
39
  "@tarojs/components": "4.2.1",
40
40
  "@tarojs/taro": "4.2.1",
41
41
  "react": "18.3.1",
42
- "@liujitcn/kratos-taro-app-core": "^0.0.91",
43
- "@liujitcn/kratos-taro-app-ui": "^0.0.91"
42
+ "@liujitcn/kratos-taro-app-core": "^0.0.92",
43
+ "@liujitcn/kratos-taro-app-ui": "^0.0.92"
44
44
  },
45
45
  "scripts": {
46
46
  "build": "pnpm run build:entries && pnpm pack --pack-destination ../../../dist/npm",