vg-print-vue2 1.0.404 → 1.0.406

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
@@ -1023,16 +1023,13 @@ const preview = async () => {
1023
1023
 
1024
1024
  回调签名:
1025
1025
 
1026
- ```js
1026
+
1027
1027
  beforeGetHtml: ({ template, html }) => html
1028
- ```
1029
1028
 
1030
1029
  - `template`:当前 `hiprint.PrintTemplate` 实例
1031
1030
  - `html`:生成的 HTML 字符串(可返回新字符串替换;返回 `undefined/null` 则保持不变)
1032
1031
 
1033
1032
  示例:
1034
-
1035
- ```js
1036
1033
  const tpl = createTemplate(tmplJson)
1037
1034
 
1038
1035
  const html = await getHtml(tpl, printData, {
@@ -1184,8 +1181,6 @@ exportPdf(tpl, printData, '打印预览pdf', {
1184
1181
  imageQuality: 0.92, // 图片质量 0-1 默认 0.92
1185
1182
  imageCompression: 'FAST', // 图片压缩算法 默认 FAST 支持 FAST、MEDIUM、SLOW
1186
1183
  onProgress: (cur, total) => console.log('toPdf 进度', Math.floor((cur / total) * 100))
1187
- })
1188
- onProgress: (cur, total) => console.log('toPdf 进度', Math.floor((cur / total) * 100))
1189
1184
  })
1190
1185
  ```
1191
1186