We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 461b7e0 commit ec157caCopy full SHA for ec157ca
docs/developer-guide/plugin/api-changelog.md
@@ -5,4 +5,19 @@ description: 记录每一个版本的插件 API 变更记录,方便开发者
5
6
## 2.22.0
7
8
-WIP
+### `@halo-dev/console-shared` 工具库
9
+
10
+在 2.22.0 中,Halo 在 `@halo-dev/console-shared` 包中提供一些常用工具,用于减少部分业务的开发工作量,目前提供:
11
12
+1. `stores`
13
+ 1. `currentUser`:用于获取当前用户信息
14
+ 2. `globalInfo`:用于获取网站一些公开的信息,比如外部访问地址
15
+2. utils
16
+ 1. `date`:时间日期格式化工具
17
+ 2. `permission`:用户权限检查工具
18
+ 3. `id`:uuid 生成工具
19
+ 4. `attachment`:附件相关工具,比如获取附件缩略图地址
20
+3. events
21
+ 1. `core:plugin:configMap:updated`:用于监听插件配置变更
22
23
+详细文档可查阅:[共享工具库](./api-reference/ui/shared.md)
0 commit comments