@zl-ui-kit/composables 0.3.2 → 0.3.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.
- package/README.md +12 -2
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
# @zl-ui-kit/composables
|
|
2
2
|
|
|
3
|
+
> **完整使用文档**:[`@zl-ui-kit/components` 的 README(npm 页面)](https://www.npmjs.com/package/@zl-ui-kit/components) 即 UI 组件权威文档 ——
|
|
4
|
+
> 本包的 Hooks / 工具 / 主题 / 国际化用法都在其中,本文只保留本包速查与运行前提。
|
|
5
|
+
|
|
3
6
|
ZL UI 组合式函数库(TypeScript):
|
|
4
7
|
|
|
5
8
|
| 模块 | 说明 |
|
|
@@ -14,8 +17,15 @@ ZL UI 组合式函数库(TypeScript):
|
|
|
14
17
|
|
|
15
18
|
## 运行前提(微前端模块)
|
|
16
19
|
|
|
17
|
-
|
|
20
|
+
`@micro-zoe/micro-app` 是**可选 peer**(0.3.2 起)。`useMicroApp` / `useMicroAction` / `usePageTabs` 在缺失时会抛出带安装指引的错误;`useMicroGlobalData` 则**自动降级**为本地存储模式(`$zl_locale` / `$zl_theme` / `$zl_token`),因此 `useLocale`、主题、字典在纯 Web 应用中照常可用。
|
|
21
|
+
|
|
22
|
+
```bash
|
|
23
|
+
# 只在用微前端时才需要
|
|
24
|
+
npm i @micro-zoe/micro-app
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
`enableGlobalDataMock()` 仍保留用于强制 mock 调试,但**不再是**使用 `useMicroGlobalData` 的必要条件。字典模块(`useDict` 等)本身不依赖微前端。
|
|
18
28
|
|
|
19
29
|
## 本地调试
|
|
20
30
|
|
|
21
|
-
playground alias 直指 `src/`;`pnpm build`(tsup)。详见 `
|
|
31
|
+
playground alias 直指 `src/`;`pnpm build`(tsup)。详见 `@zl-ui-kit/components` README §11;发布见 `docs/发布流程.md`。
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zl-ui-kit/composables",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "ZL UI 组合式函数库:useRequest 请求体系、微前端通信层、全局消息、字典、国际化等",
|
|
6
6
|
"license": "MIT",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
],
|
|
20
20
|
"sideEffects": false,
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@zl-ui-kit/utils": "0.3.
|
|
22
|
+
"@zl-ui-kit/utils": "0.3.3"
|
|
23
23
|
},
|
|
24
24
|
"peerDependencies": {
|
|
25
25
|
"@micro-zoe/micro-app": ">=1.0.0-rc.10 <2",
|
|
@@ -44,8 +44,8 @@
|
|
|
44
44
|
"cross-env": "^7.0.3",
|
|
45
45
|
"tsup": "^8.3.5",
|
|
46
46
|
"typescript": "^5.7.3",
|
|
47
|
-
"@jichuang/
|
|
48
|
-
"@jichuang/
|
|
47
|
+
"@jichuang/tsconfig": "1.0.0",
|
|
48
|
+
"@jichuang/eslint-config": "1.0.0"
|
|
49
49
|
},
|
|
50
50
|
"repository": {
|
|
51
51
|
"type": "git",
|