vg-print 1.0.219 → 1.0.220
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 +75 -0
- package/dist/style.css +1 -1
- package/dist/vg-print.es.js +29 -25
- package/dist/vg-print.umd.js +3 -3
- package/package.json +1 -1
package/dist/vg-print.es.js
CHANGED
|
@@ -65480,7 +65480,7 @@ ${i18n$1.__("转大小写")}
|
|
|
65480
65480
|
}
|
|
65481
65481
|
};
|
|
65482
65482
|
})();
|
|
65483
|
-
const version = "1.0.
|
|
65483
|
+
const version = "1.0.220";
|
|
65484
65484
|
let autoConnect = function(Ie) {
|
|
65485
65485
|
console.log("autoConnect"), window.autoConnect = !0, window.hiwebSocket && window.hiwebSocket.hasIo() && window.hiwebSocket.start(Ie);
|
|
65486
65486
|
}, disAutoConnect = function() {
|
|
@@ -86755,13 +86755,6 @@ const _sfc_main = {
|
|
|
86755
86755
|
window.removeEventListener("keydown", this.onKeydown);
|
|
86756
86756
|
},
|
|
86757
86757
|
methods: {
|
|
86758
|
-
$t(Ie) {
|
|
86759
|
-
try {
|
|
86760
|
-
return i18n && i18n.global && i18n.global.t ? i18n.global.t(Ie) : Ie;
|
|
86761
|
-
} catch {
|
|
86762
|
-
return Ie;
|
|
86763
|
-
}
|
|
86764
|
-
},
|
|
86765
86758
|
// 为不同模板隔离数据缓存:避免切换模板后仍使用旧数据
|
|
86766
86759
|
getPrintDataKey() {
|
|
86767
86760
|
try {
|
|
@@ -87528,7 +87521,7 @@ function _sfc_render(Ie, Ae, je, Be, Ee, Se) {
|
|
|
87528
87521
|
createVNode(De, {
|
|
87529
87522
|
modelValue: Ee.printerName,
|
|
87530
87523
|
"onUpdate:modelValue": Ae[1] || (Ae[1] = (nr) => Ee.printerName = nr),
|
|
87531
|
-
placeholder:
|
|
87524
|
+
placeholder: Ie.$t("toolbar.printerName"),
|
|
87532
87525
|
style: { width: "120px", margin: "0 2px" },
|
|
87533
87526
|
size: "small",
|
|
87534
87527
|
class: "printer-select"
|
|
@@ -87549,7 +87542,7 @@ function _sfc_render(Ie, Ae, je, Be, Ee, Se) {
|
|
|
87549
87542
|
}, {
|
|
87550
87543
|
default: withCtx(() => [
|
|
87551
87544
|
Ae[18] || (Ae[18] = createElementVNode("i", { class: "iconfont icon-yulan" }, null, -1)),
|
|
87552
|
-
createTextVNode(toDisplayString$1(
|
|
87545
|
+
createTextVNode(toDisplayString$1(Ie.$t("toolbar.preview")), 1)
|
|
87553
87546
|
]),
|
|
87554
87547
|
_: 1
|
|
87555
87548
|
}, 8, ["onClick"]),
|
|
@@ -87561,7 +87554,7 @@ function _sfc_render(Ie, Ae, je, Be, Ee, Se) {
|
|
|
87561
87554
|
}, {
|
|
87562
87555
|
default: withCtx(() => [
|
|
87563
87556
|
Ae[19] || (Ae[19] = createElementVNode("i", { class: "iconfont icon-liulanqi" }, null, -1)),
|
|
87564
|
-
createTextVNode(toDisplayString$1(
|
|
87557
|
+
createTextVNode(toDisplayString$1(Ie.$t("toolbar.printBrowser")), 1)
|
|
87565
87558
|
]),
|
|
87566
87559
|
_: 1
|
|
87567
87560
|
}, 8, ["loading", "onClick"]),
|
|
@@ -87572,7 +87565,7 @@ function _sfc_render(Ie, Ae, je, Be, Ee, Se) {
|
|
|
87572
87565
|
}, {
|
|
87573
87566
|
default: withCtx(() => [
|
|
87574
87567
|
Ae[20] || (Ae[20] = createElementVNode("i", { class: "iconfont icon-daochupdf2-01" }, null, -1)),
|
|
87575
|
-
createTextVNode(toDisplayString$1(
|
|
87568
|
+
createTextVNode(toDisplayString$1(Ie.$t("toolbar.exportPDF")), 1)
|
|
87576
87569
|
]),
|
|
87577
87570
|
_: 1
|
|
87578
87571
|
}, 8, ["onClick"]),
|
|
@@ -87583,7 +87576,7 @@ function _sfc_render(Ie, Ae, je, Be, Ee, Se) {
|
|
|
87583
87576
|
}, {
|
|
87584
87577
|
default: withCtx(() => [
|
|
87585
87578
|
Ae[21] || (Ae[21] = createElementVNode("i", { class: "iconfont icon-daochutupian" }, null, -1)),
|
|
87586
|
-
createTextVNode(toDisplayString$1(
|
|
87579
|
+
createTextVNode(toDisplayString$1(Ie.$t("toolbar.exportImage")), 1)
|
|
87587
87580
|
]),
|
|
87588
87581
|
_: 1
|
|
87589
87582
|
}, 8, ["onClick"]),
|
|
@@ -87594,7 +87587,7 @@ function _sfc_render(Ie, Ae, je, Be, Ee, Se) {
|
|
|
87594
87587
|
}, {
|
|
87595
87588
|
default: withCtx(() => [
|
|
87596
87589
|
Ae[22] || (Ae[22] = createElementVNode("i", { class: "iconfont icon-24gl-printer" }, null, -1)),
|
|
87597
|
-
createTextVNode(toDisplayString$1(
|
|
87590
|
+
createTextVNode(toDisplayString$1(Ie.$t("toolbar.printDirect")), 1)
|
|
87598
87591
|
]),
|
|
87599
87592
|
_: 1
|
|
87600
87593
|
}, 8, ["onClick"]),
|
|
@@ -87611,7 +87604,7 @@ function _sfc_render(Ie, Ae, je, Be, Ee, Se) {
|
|
|
87611
87604
|
}, {
|
|
87612
87605
|
default: withCtx(() => [
|
|
87613
87606
|
Ae[23] || (Ae[23] = createElementVNode("i", { class: "iconfont icon-qingkong" }, null, -1)),
|
|
87614
|
-
createTextVNode(toDisplayString$1(
|
|
87607
|
+
createTextVNode(toDisplayString$1(Ie.$t("toolbar.clear")), 1)
|
|
87615
87608
|
]),
|
|
87616
87609
|
_: 1
|
|
87617
87610
|
})
|
|
@@ -87625,7 +87618,7 @@ function _sfc_render(Ie, Ae, je, Be, Ee, Se) {
|
|
|
87625
87618
|
onClick: Ae[2] || (Ae[2] = (nr) => Ee.clearVisible = !1)
|
|
87626
87619
|
}, {
|
|
87627
87620
|
default: withCtx(() => [
|
|
87628
|
-
createTextVNode(toDisplayString$1(
|
|
87621
|
+
createTextVNode(toDisplayString$1(Ie.$t("toolbar.cancel")), 1)
|
|
87629
87622
|
]),
|
|
87630
87623
|
_: 1
|
|
87631
87624
|
}),
|
|
@@ -87635,7 +87628,7 @@ function _sfc_render(Ie, Ae, je, Be, Ee, Se) {
|
|
|
87635
87628
|
onClick: Se.clearPaper
|
|
87636
87629
|
}, {
|
|
87637
87630
|
default: withCtx(() => [
|
|
87638
|
-
createTextVNode(toDisplayString$1(
|
|
87631
|
+
createTextVNode(toDisplayString$1(Ie.$t("toolbar.confirm")), 1)
|
|
87639
87632
|
]),
|
|
87640
87633
|
_: 1
|
|
87641
87634
|
}, 8, ["onClick"])
|
|
@@ -87657,7 +87650,7 @@ function _sfc_render(Ie, Ae, je, Be, Ee, Se) {
|
|
|
87657
87650
|
}, {
|
|
87658
87651
|
default: withCtx(() => [
|
|
87659
87652
|
Ae[25] || (Ae[25] = createElementVNode("i", { class: "iconfont icon-bianji" }, null, -1)),
|
|
87660
|
-
createTextVNode(toDisplayString$1(
|
|
87653
|
+
createTextVNode(toDisplayString$1(Ie.$t("toolbar.editTemplateData")), 1)
|
|
87661
87654
|
]),
|
|
87662
87655
|
_: 1
|
|
87663
87656
|
}),
|
|
@@ -87666,7 +87659,7 @@ function _sfc_render(Ie, Ae, je, Be, Ee, Se) {
|
|
|
87666
87659
|
}, {
|
|
87667
87660
|
default: withCtx(() => [
|
|
87668
87661
|
Ae[26] || (Ae[26] = createElementVNode("i", { class: "iconfont icon-shujuwajue" }, null, -1)),
|
|
87669
|
-
createTextVNode(toDisplayString$1(
|
|
87662
|
+
createTextVNode(toDisplayString$1(Ie.$t("toolbar.editPrintData")), 1)
|
|
87670
87663
|
]),
|
|
87671
87664
|
_: 1
|
|
87672
87665
|
})
|
|
@@ -87676,7 +87669,7 @@ function _sfc_render(Ie, Ae, je, Be, Ee, Se) {
|
|
|
87676
87669
|
]),
|
|
87677
87670
|
default: withCtx(() => [
|
|
87678
87671
|
Ae[27] || (Ae[27] = createElementVNode("i", { class: "iconfont icon-baocun" }, null, -1)),
|
|
87679
|
-
createTextVNode(toDisplayString$1(
|
|
87672
|
+
createTextVNode(toDisplayString$1(Ie.$t("toolbar.save")) + " ", 1)
|
|
87680
87673
|
]),
|
|
87681
87674
|
_: 1
|
|
87682
87675
|
}, 8, ["onClick"]),
|
|
@@ -87734,7 +87727,7 @@ function _sfc_render(Ie, Ae, je, Be, Ee, Se) {
|
|
|
87734
87727
|
class: "prop-header",
|
|
87735
87728
|
onMousedown: Ae[13] || (Ae[13] = withModifiers((...nr) => Se.startDragProp && Se.startDragProp(...nr), ["prevent"]))
|
|
87736
87729
|
}, [
|
|
87737
|
-
createElementVNode("span", _hoisted_3, toDisplayString$1(
|
|
87730
|
+
createElementVNode("span", _hoisted_3, toDisplayString$1(Ie.$t("toolbar.properties")), 1),
|
|
87738
87731
|
createElementVNode("div", _hoisted_4, [
|
|
87739
87732
|
createVNode(Ue, {
|
|
87740
87733
|
class: "icon-btn",
|
|
@@ -87825,7 +87818,7 @@ function _sfc_render(Ie, Ae, je, Be, Ee, Se) {
|
|
|
87825
87818
|
createElementVNode("span", _hoisted_6, [
|
|
87826
87819
|
createVNode(Ue, { onClick: Se.cancelCodeEditor }, {
|
|
87827
87820
|
default: withCtx(() => [
|
|
87828
|
-
createTextVNode(toDisplayString$1(
|
|
87821
|
+
createTextVNode(toDisplayString$1(Ie.$t("toolbar.cancel")), 1)
|
|
87829
87822
|
]),
|
|
87830
87823
|
_: 1
|
|
87831
87824
|
}, 8, ["onClick"]),
|
|
@@ -87834,7 +87827,7 @@ function _sfc_render(Ie, Ae, je, Be, Ee, Se) {
|
|
|
87834
87827
|
onClick: Se.confirmCodeEditor
|
|
87835
87828
|
}, {
|
|
87836
87829
|
default: withCtx(() => [
|
|
87837
|
-
createTextVNode(toDisplayString$1(
|
|
87830
|
+
createTextVNode(toDisplayString$1(Ie.$t("toolbar.confirm")), 1)
|
|
87838
87831
|
]),
|
|
87839
87832
|
_: 1
|
|
87840
87833
|
}, 8, ["onClick"])
|
|
@@ -87858,11 +87851,22 @@ function _sfc_render(Ie, Ae, je, Be, Ee, Se) {
|
|
|
87858
87851
|
}, null, 8, ["template", "onApply"])
|
|
87859
87852
|
], 64);
|
|
87860
87853
|
}
|
|
87861
|
-
const FullDesigner = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-
|
|
87854
|
+
const FullDesigner = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-9ded9610"]]), index = {
|
|
87862
87855
|
install(Ie) {
|
|
87863
87856
|
Ie.component("FullDesigner", FullDesigner);
|
|
87864
87857
|
try {
|
|
87865
|
-
typeof window < "u"
|
|
87858
|
+
if (typeof window < "u") {
|
|
87859
|
+
i18n && Ie.use(i18n);
|
|
87860
|
+
const Ae = (je, ...Be) => {
|
|
87861
|
+
try {
|
|
87862
|
+
const Ee = Ie.config.globalProperties && Ie.config.globalProperties.$t, Se = Ee ? Ee(je, ...Be) : i18n && i18n.global && i18n.global.t ? i18n.global.t(je, ...Be) : je;
|
|
87863
|
+
return Se === je || Se == null ? i18n && i18n.global && i18n.global.t ? i18n.global.t(je, ...Be) : je : Se;
|
|
87864
|
+
} catch {
|
|
87865
|
+
return je;
|
|
87866
|
+
}
|
|
87867
|
+
};
|
|
87868
|
+
Ie.config.globalProperties.$t = Ae, hiPrintPlugin.install(Ie);
|
|
87869
|
+
}
|
|
87866
87870
|
} catch {
|
|
87867
87871
|
}
|
|
87868
87872
|
}
|