vg-print 1.0.379 → 1.0.381

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
@@ -70,6 +70,18 @@ npm i vg-print
70
70
  - `headerCenter` 中间自定义区域(默认空)
71
71
  - `headerRight` 右侧操作区(默认:打印机与一组按钮)
72
72
 
73
+ ### 如果发现外部调用安装过程页面样式有丢失情况, 可以引入打印样式重要提醒需要复制
74
+
75
+ 【node_modules/@vg-print/hiprint/dist/css/print-lock.css】到开发资源目录。
76
+ 例如: Vue 项目的 public 目录。
77
+ 假如你部署的网站是: https://www.abcd.com/index.html
78
+ 那么确保 https://www.abcd.com/print-lock.css
79
+ 能够正常访问在你项目的 index.html 入口 添加 print-lock.css 打印样式【名称 print-lock.css】注意: media="print"
80
+ <!-- 可以调整成 相对链接/自有链接, 【重要】名称需要一致 【print-lock.css】-->
81
+ ```
82
+ <link rel="stylesheet" type="text/css" media="print" href="/print-lock.css" />
83
+ ```
84
+
73
85
  ### 使用示例:与 FullDesigner 配合
74
86
 
75
87
  ```vue
@@ -1,4 +1,4 @@
1
- import { l as b } from "./index-D8l_u1sl.js";
1
+ import { l as b } from "./index-BvD5EGDa.js";
2
2
  function M(e) {
3
3
  return typeof e == "string" && /^data:image\/svg\+xml/i.test(e);
4
4
  }
@@ -1,4 +1,4 @@
1
- import { W as a } from "./chunk-3VYIPD3A-BMbsE8PY.js";
1
+ import { W as a } from "./chunk-3VYIPD3A-BUpoM7to.js";
2
2
  async function o(r, t) {
3
3
  let i = await a(r, t), e = new Image();
4
4
  return e.src = i.toDataURL(`image/${t.format}`, t.quality), await e.decode(), e.style.width = `${i.width / t.dpr}px`, e.style.height = `${i.height / t.dpr}px`, e;
@@ -1,4 +1,4 @@
1
- import { W as m } from "./chunk-3VYIPD3A-BMbsE8PY.js";
1
+ import { W as m } from "./chunk-3VYIPD3A-BUpoM7to.js";
2
2
  async function a(n, e) {
3
3
  let o = e.type;
4
4
  if (o === "svg") {
@@ -1,5 +1,5 @@
1
- import { m as f } from "./chunk-T4JIPPZO-BdFq8NvU.js";
2
- import { W as t } from "./chunk-3VYIPD3A-BMbsE8PY.js";
1
+ import { m as f } from "./chunk-T4JIPPZO-B6pbWGpN.js";
2
+ import { W as t } from "./chunk-3VYIPD3A-BUpoM7to.js";
3
3
  async function w(n, e) {
4
4
  let c = ((e == null ? void 0 : e.format) || (e == null ? void 0 : e.type) || "").toLowerCase(), a = c === "jpg" ? "jpeg" : c || "png", i = (e == null ? void 0 : e.filename) || `snapdom.${a}`, o = { ...e || {}, format: a, type: a };
5
5
  if (o.dpr = 1, a === "svg") {