vg-print 1.0.201 → 1.0.203
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 +4 -1
- package/dist/hiprint-designer.es.js +59230 -0
- package/dist/hiprint-designer.umd.js +2047 -0
- package/dist/purify.es-CKk_t3XZ.js +471 -0
- package/dist/style.css +1 -0
- package/package.json +9 -3
- package/dist/index.html +0 -15
- package/dist/static/css/index-BQgwTBxP.css +0 -1
- package/dist/static/eot/iconfont-B29x-Pv4.eot +0 -0
- package/dist/static/js/index-DaZYVOmF.js +0 -2180
- package/dist/static/js/purify.es-C_uT9hQ1.js +0 -3
- package/dist/static/png/jquery.minicolors-DuhFDKu9.png +0 -0
- package/dist/static/svg/iconfont-CM4zkCXp.svg +0 -203
- package/dist/static/svg/l_img-CfaYkjcP.svg +0 -1
- package/dist/static/svg/v_img-DRoQiI_w.svg +0 -1
- package/dist/static/ttf/iconfont-Cv2qGaA6.ttf +0 -0
- package/dist/static/woff/iconfont-BeWPCfhO.woff +0 -0
package/README.md
CHANGED
|
@@ -78,7 +78,7 @@ const openPreview = () => {
|
|
|
78
78
|
previewRef.value.show()
|
|
79
79
|
}
|
|
80
80
|
|
|
81
|
-
const providers = [new
|
|
81
|
+
const providers = [new defaultElementTypeProvider()]
|
|
82
82
|
const plugins = []
|
|
83
83
|
</script>
|
|
84
84
|
```
|
|
@@ -265,6 +265,9 @@ await tpl.toImage({ name: 'i不简' }, { isDownload: true, type: 'image/jpeg', p
|
|
|
265
265
|
- 模板资源(图片等)建议使用绝对可访问链接或 Base64
|
|
266
266
|
- 纸张列表可参考 A/B 系列(来自 sv-print 文档)
|
|
267
267
|
- 可通过 `hiprint.setConfig` 与组件插槽定制 UI/交互
|
|
268
|
+
- 报错 `defaultElementTypeProvider(...) is not a constructor`:请使用 `new defaultElementTypeProvider()`,不要先调用再 `new`
|
|
269
|
+
- 导入样式 `import 'vg-print/dist/style.css'` 报错:确认包已构建且 `dist/style.css` 存在;若从本地/仓库直接安装,先执行 `npm run build:lib` 或依赖包的 `prepare`
|
|
270
|
+
- WebSocket `TransportError`:这是自动连接打印客户端失败的提示;如不使用客户端,安装时传入 `{ autoConnect: false }` 或在运行期调用 `disAutoConnect()`
|
|
268
271
|
|
|
269
272
|
## 打包与发布
|
|
270
273
|
|