@borurio-print/print-designer 1.0.0 → 1.0.2

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 CHANGED
@@ -33,14 +33,18 @@
33
33
 
34
34
  ## npm 包使用
35
35
 
36
- 当前包名为 `@borurio-print/print-designer`。业务项目需要使用 Vue 3,并安装组件声明的
37
- `vue`、`vue-i18n` 和 `element-plus` peer dependencies。
36
+ 当前包名为 `@borurio-print/print-designer`。业务项目需要已安装下列 peer dependencies:
37
+
38
+ - Vue `>=3.2.45 <4.0.0`
39
+ - Element Plus `>=2.3.2 <3.0.0`
40
+ - vue-i18n `>=9.2.2 <12.0.0`
38
41
 
39
42
  ```bash
40
43
  npm install @borurio-print/print-designer
41
44
  ```
42
45
 
43
46
  如果业务项目尚未安装上述 peer dependencies,再按 npm 提示补充安装。
47
+ 二维码、条形码和 PDF 生成库已包含在设计器产物中,业务项目无需另行安装。
44
48
 
45
49
  在 Vue 页面中引入组件和独立样式文件:
46
50
 
@@ -93,6 +97,13 @@ i18n.global.mergeLocaleMessage('zh-CN', printDesignerZhCN)
93
97
  i18n.global.mergeLocaleMessage('en-US', printDesignerEnUS)
94
98
  ```
95
99
 
100
+ 如果业务系统使用 `zh-cn` 和 `en` 作为语言代码,则按实际代码合并:
101
+
102
+ ```ts
103
+ i18n.global.mergeLocaleMessage('zh-cn', printDesignerZhCN)
104
+ i18n.global.mergeLocaleMessage('en', printDesignerEnUS)
105
+ ```
106
+
96
107
  ## npm 发布
97
108
 
98
109
  首次发布前,需要确认当前 npm 账号拥有 `@borurio-print` 组织作用域的发布权限。先登录并检查