vue-print-designer 1.7.37 → 1.7.39

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
@@ -131,24 +131,7 @@ PrintDot Client 是本项目的配套桌面客户端,用于连接本地打印
131
131
 
132
132
  ## 快速开始
133
133
 
134
- ### 方式一:下载源码自行改造与集成 API
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
- src/ # 项目源码目录
236
- ├── App.vue # 应用根组件
237
- ├── main.ts # 应用启动入口
238
- ├── style.css # 全局样式
239
- ├── web-component.ts # Web Components 注册入口
240
- ├── web-component.d.ts # Web Components 类型声明
241
- ├── vite-env.d.ts # Vite 环境类型声明
242
- ├── assets/ # 静态资源
243
- ├── components/ # 页面与编辑器组件
244
- │ ├── PrintDesigner.vue # 设计器主容器组件
245
- │ ├── canvas/ # 画布区域组件
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 { g as getDefaultExportFromCjs } from "./web-component-BNhkv3Wx.js";
1
+ import { g as getDefaultExportFromCjs } from "./web-component-zZPzxxzQ.js";
2
2
  function _mergeNamespaces(n, m) {
3
3
  for (var i = 0; i < m.length; i++) {
4
4
  const e = m[i];
@@ -1,4 +1,4 @@
1
- import { g as getDefaultExportFromCjs } from "./web-component-BNhkv3Wx.js";
1
+ import { g as getDefaultExportFromCjs } from "./web-component-zZPzxxzQ.js";
2
2
  function _mergeNamespaces(n, m) {
3
3
  for (var i = 0; i < m.length; i++) {
4
4
  const e = m[i];
@@ -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-BNhkv3Wx.js";
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-zZPzxxzQ.js";
2
2
  var __defProp$2 = Object.defineProperty;
3
3
  var __defProps = Object.defineProperties;
4
4
  var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
@@ -1 +1 @@
1
- .print-renderer[data-v-7d74f93c]{padding:0}.animate-fade-in[data-v-b30c2d6b]{animation:fadeIn-b30c2d6b .2s ease-out}@keyframes fadeIn-b30c2d6b{0%{opacity:0;transform:scale(.95)}to{opacity:1;transform:scale(1)}}[data-v-808018c8] .print-page{margin-bottom:40px;background:#fff;box-shadow:none!important;position:relative!important;left:auto!important;top:auto!important}.preview-content[data-v-808018c8] *{cursor:default!important}.resize-y[data-v-1ad67897]{resize:vertical}.no-scrollbar[data-v-1d17239a]{-ms-overflow-style:none;scrollbar-width:none}.no-scrollbar[data-v-1d17239a]::-webkit-scrollbar{display:none}
1
+ .print-renderer[data-v-7d74f93c]{padding:0}.animate-fade-in[data-v-efdeba31]{animation:fadeIn-efdeba31 .2s ease-out}@keyframes fadeIn-efdeba31{0%{opacity:0;transform:scale(.95)}to{opacity:1;transform:scale(1)}}[data-v-808018c8] .print-page{margin-bottom:40px;background:#fff;box-shadow:none!important;position:relative!important;left:auto!important;top:auto!important}.preview-content[data-v-808018c8] *{cursor:default!important}.resize-y[data-v-bedb3e64]{resize:vertical}.no-scrollbar[data-v-1d17239a]{-ms-overflow-style:none;scrollbar-width:none}.no-scrollbar[data-v-1d17239a]::-webkit-scrollbar{display:none}
@@ -1,4 +1,4 @@
1
- import { P } from "./web-component-BNhkv3Wx.js";
1
+ import { P } from "./web-component-zZPzxxzQ.js";
2
2
  export {
3
3
  P as PrintDesignerElement
4
4
  };