@viewfly/router 3.0.0-alpha.1 → 3.0.0-alpha.3

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 -3
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -18,7 +18,7 @@ pnpm add @viewfly/router @viewfly/platform-browser @viewfly/core
18
18
  2. 在布局中用 **`Link`** 生成导航,用 **`RouterOutlet`** 根据配置渲染匹配到的组件。
19
19
  3. 在组件内通过 **`inject(Router)`** 拿到路由实例,调用 **`navigateTo`** 等方法做跳转。
20
20
 
21
- 最小串联示例(节选,完整路由表与懒加载等见官网):
21
+ 最小串联示例(节选;完整路由表、懒加载等请结合类型定义与本包源码中的 `RouterModule` / `RouterOutlet` 用法扩展):
22
22
 
23
23
  ```tsx
24
24
  import { inject } from '@viewfly/core'
@@ -63,13 +63,13 @@ createApp(<App />)
63
63
  .mount(document.getElementById('app')!)
64
64
  ```
65
65
 
66
- **嵌套路由**:在子页面组件内再次放置 `RouterOutlet`,并为其传入子级 `config`(与官网「路由」章节一致)。
66
+ **嵌套路由**:在子页面组件内再次放置 `RouterOutlet`,并为其传入子级 `config`。
67
67
 
68
68
  ---
69
69
 
70
70
  ## 文档
71
71
 
72
- - **官方文档**:[viewfly.org](https://viewfly.org)
72
+ - 以 **`@viewfly/router` 类型定义** 与本 README、仓库内 `packages/playground` 示例为准。
73
73
 
74
74
  ---
75
75
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@viewfly/router",
3
- "version": "3.0.0-alpha.1",
3
+ "version": "3.0.0-alpha.3",
4
4
  "description": "A routing library based on the Viewfly framework that can be run in the browser or Nodejs background.",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.esm.js",
@@ -19,7 +19,7 @@
19
19
  "keywords": [],
20
20
  "dependencies": {
21
21
  "@tanbo/stream": "^1.2.4",
22
- "@viewfly/core": "^3.0.0-alpha.1",
22
+ "@viewfly/core": "^3.0.0-alpha.3",
23
23
  "url": "^0.11.4"
24
24
  },
25
25
  "devDependencies": {