vue-print-designer 1.7.38 → 1.7.40
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 +15 -58
- package/dist/{JsBarcode-Cj_84BWS.js → JsBarcode-CIK54yZ2.js} +1 -1
- package/dist/{browser-sxDhFx6t.js → browser-DN81LY7p.js} +1 -1
- package/dist/{index-BzUfTohP.js → index-BrnO83Zf.js} +1 -1
- package/dist/print-designer.es.js +1 -1
- package/dist/print-designer.umd.js +7 -7
- package/dist/{web-component-S7JA23Qa.js → web-component-tUpd27PP.js} +104 -38
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -131,24 +131,7 @@ PrintDot Client 是本项目的配套桌面客户端,用于连接本地打印
|
|
|
131
131
|
|
|
132
132
|
## 快速开始
|
|
133
133
|
|
|
134
|
-
###
|
|
135
|
-
|
|
136
|
-
适合有深度定制需求的团队。
|
|
137
|
-
|
|
138
|
-
#### 环境要求
|
|
139
|
-
|
|
140
|
-
- Node.js >= 16.0.0
|
|
141
|
-
- npm >= 7.0.0 或 yarn / pnpm
|
|
142
|
-
|
|
143
|
-
#### 建议接入点
|
|
144
|
-
|
|
145
|
-
- 模板 CRUD:`useTemplateStore`(可替换为接口读写)
|
|
146
|
-
- 自定义元素 CRUD:`useDesignerStore` 中的 `customElements`
|
|
147
|
-
- 变量与模板数据:组件实例方法 `setVariables` / `loadTemplateData`
|
|
148
|
-
|
|
149
|
-
自定义元素扩展请查看:[自定义元素扩展指南](https://printdot.cc/docs)
|
|
150
|
-
|
|
151
|
-
### 方式二:npm 组件(Web Components)[了解 Web Components](https://developer.mozilla.org/zh-CN/docs/Web/API/Web_components)
|
|
134
|
+
### 方式一:npm 组件(Web Components)[了解 Web Components](https://developer.mozilla.org/zh-CN/docs/Web/API/Web_components)
|
|
152
135
|
|
|
153
136
|
适合任何技术栈(Vue / React / Angular / 原生)。Web Components 方式**支持 Vue 2**(作为自定义元素使用),无需 Vue 2 组件适配。
|
|
154
137
|
|
|
@@ -227,48 +210,22 @@ el.addEventListener("error", (e) => {
|
|
|
227
210
|
});
|
|
228
211
|
```
|
|
229
212
|
|
|
230
|
-
|
|
213
|
+
### 方式二:下载源码自行改造与集成 API
|
|
231
214
|
|
|
232
|
-
|
|
215
|
+
适合有深度定制需求的团队。
|
|
233
216
|
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
│ ├── common/ # 通用组件(弹窗、选择器等)
|
|
247
|
-
│ ├── elements/ # 打印元素组件(文本、图片、表格等)
|
|
248
|
-
│ ├── layout/ # 布局组件(头部、侧栏、面板等)
|
|
249
|
-
│ ├── print/ # 打印渲染组件
|
|
250
|
-
│ └── properties/ # 属性配置组件
|
|
251
|
-
├── composables/ # 组合式状态与行为封装
|
|
252
|
-
├── constants/ # 常量定义
|
|
253
|
-
├── locales/ # 国际化语言包
|
|
254
|
-
├── stores/ # Pinia 状态管理
|
|
255
|
-
├── types/ # 类型声明
|
|
256
|
-
└── utils/ # 通用工具函数
|
|
257
|
-
├── print.ts # 兼容导出入口
|
|
258
|
-
├── print/ # 打印能力主目录
|
|
259
|
-
│ ├── index.ts # 打印模块统一导出
|
|
260
|
-
│ ├── usePrint.ts # 打印/导出流程编排入口
|
|
261
|
-
│ ├── dom.ts # 打印相关 DOM 处理工具
|
|
262
|
-
│ ├── printChannel.ts # 本地/远程打印通道
|
|
263
|
-
│ ├── renderEngine.ts # 渲染引擎兼容导出入口
|
|
264
|
-
│ └── renderEngine/ # 渲染引擎子模块目录
|
|
265
|
-
│ ├── index.ts # 渲染引擎装配入口
|
|
266
|
-
│ ├── types.ts # 渲染模块共享类型
|
|
267
|
-
│ ├── pagination.ts # 分页算法与布局修正
|
|
268
|
-
│ ├── iframeRenderer.ts # iframe 渲染实现
|
|
269
|
-
│ └── imageRenderer.ts # 图片/PDF 渲染实现
|
|
270
|
-
└── ... # 其他通用工具函数
|
|
271
|
-
```
|
|
217
|
+
#### 环境要求
|
|
218
|
+
|
|
219
|
+
- Node.js >= 16.0.0
|
|
220
|
+
- npm >= 7.0.0 或 yarn / pnpm
|
|
221
|
+
|
|
222
|
+
#### 建议接入点
|
|
223
|
+
|
|
224
|
+
- 模板 CRUD:`useTemplateStore`(可替换为接口读写)
|
|
225
|
+
- 自定义元素 CRUD:`useDesignerStore` 中的 `customElements`
|
|
226
|
+
- 变量与模板数据:组件实例方法 `setVariables` / `loadTemplateData`
|
|
227
|
+
|
|
228
|
+
自定义元素扩展请查看:[自定义元素扩展指南](https://printdot.cc/docs)
|
|
272
229
|
|
|
273
230
|
---
|
|
274
231
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as defineComponent, h, c as computed, o as onUnmounted, w as watch, s as shallowRef, l as loader, a as onMounted, n as nextTick, r as ref } from "./web-component-
|
|
1
|
+
import { d as defineComponent, h, c as computed, o as onUnmounted, w as watch, s as shallowRef, l as loader, a as onMounted, n as nextTick, r as ref } from "./web-component-tUpd27PP.js";
|
|
2
2
|
var __defProp$2 = Object.defineProperty;
|
|
3
3
|
var __defProps = Object.defineProperties;
|
|
4
4
|
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|