@zhin.js/client 1.0.9 → 1.0.10
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 +4 -2
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -70,8 +70,8 @@ addPage({
|
|
|
70
70
|
key: 'settings',
|
|
71
71
|
path: '/settings',
|
|
72
72
|
title: '设置',
|
|
73
|
-
icon:
|
|
74
|
-
|
|
73
|
+
icon: <Settings className="w-5 h-5" />,
|
|
74
|
+
element: <SettingsPage />
|
|
75
75
|
})
|
|
76
76
|
|
|
77
77
|
// 删除页面
|
|
@@ -86,6 +86,8 @@ updatePage('/settings', {
|
|
|
86
86
|
element: <UpdatedSettingsPage />
|
|
87
87
|
})
|
|
88
88
|
|
|
89
|
+
// 注:RouteMenuItem 同时支持 element(ReactNode)和 Component(ComponentType)两种属性
|
|
90
|
+
|
|
89
91
|
// 向后兼容的旧 API(已废弃)
|
|
90
92
|
import { addRoute, removeRoute, updateRoute } from '@zhin.js/client'
|
|
91
93
|
// 这些 API 仍然可用,但推荐使用新的 addPage 等 API
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zhin.js/client",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.10",
|
|
4
4
|
"description": "Zhin 客户端",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -39,6 +39,6 @@
|
|
|
39
39
|
},
|
|
40
40
|
"scripts": {
|
|
41
41
|
"build": "tsc",
|
|
42
|
-
"clean": "
|
|
42
|
+
"clean": "rimraf lib"
|
|
43
43
|
}
|
|
44
44
|
}
|