dfs-page-config 0.3.56 → 0.3.57
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/dist/dfs-page-config.js +41 -26
- package/dist/dfs-page-config.umd.cjs +9 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/dfs-page-config.js
CHANGED
|
@@ -105114,6 +105114,7 @@ const _sfc_main = defineComponent({
|
|
|
105114
105114
|
}
|
|
105115
105115
|
},
|
|
105116
105116
|
setup(k) {
|
|
105117
|
+
Ue();
|
|
105117
105118
|
let L;
|
|
105118
105119
|
const ie = reactive({
|
|
105119
105120
|
zoomIn: k.type == "dialog",
|
|
@@ -105146,34 +105147,48 @@ const _sfc_main = defineComponent({
|
|
|
105146
105147
|
inputPattern: /^\d*$/,
|
|
105147
105148
|
inputErrorMessage: "请输入数字",
|
|
105148
105149
|
center: !0
|
|
105149
|
-
}).then(({ value:
|
|
105150
|
-
for (let
|
|
105151
|
-
L = window.getLodop(), L.SET_PRINT_PAGESIZE(1, 450, 700, ""), L.SET_PRINT_STYLE("FontSize", 6), L.SET_PRINT_STYLE("FontName", "
|
|
105150
|
+
}).then(({ value: kt }) => {
|
|
105151
|
+
for (let jt = 0; jt < kt; jt++)
|
|
105152
|
+
L = window.getLodop(), L.SET_PRINT_PAGESIZE(1, 450, 700, ""), L.SET_PRINT_STYLE("FontSize", 6), L.SET_PRINT_STYLE("FontName", "CircularXX"), Dt(k.data), L.PRINT_DESIGN();
|
|
105152
105153
|
}).catch(() => {
|
|
105153
105154
|
});
|
|
105154
105155
|
}
|
|
105155
|
-
const xe = 8, Ne = 260 - xe, Ie =
|
|
105156
|
-
function Dt(
|
|
105157
|
-
let
|
|
105158
|
-
L.ADD_PRINT_TEXT(Ne - xe - 5, Ie -
|
|
105159
|
-
let
|
|
105160
|
-
if (
|
|
105161
|
-
|
|
105162
|
-
let
|
|
105163
|
-
|
|
105156
|
+
const xe = 8, Ne = 260 - xe, Ie = 170, ze = 25, At = 20, qe = 8;
|
|
105157
|
+
function Dt(kt) {
|
|
105158
|
+
let jt = kt.friendlyReminder ? 10 : 20;
|
|
105159
|
+
L.ADD_PRINT_TEXT(Ne - xe - 5, Ie - 30, 30, 12, kt.id);
|
|
105160
|
+
let tr = 0;
|
|
105161
|
+
if (kt.barCodeId && (tr += At, L.ADD_PRINT_BARCODE(Ne - At, xe, 120, At, "EAN128B", kt.barCodeId), L.SET_PRINT_STYLEA(0, "ShowBarText", 0)), kt.friendlyReminder) {
|
|
105162
|
+
tr += jt;
|
|
105163
|
+
let or = Math.ceil(kt.friendlyReminder.length / ze) * qe;
|
|
105164
|
+
tr += or, L.ADD_PRINT_TEXT(Ne - tr, xe, Ie, or, kt.friendlyReminder);
|
|
105164
105165
|
}
|
|
105165
|
-
if (
|
|
105166
|
-
const
|
|
105167
|
-
|
|
105168
|
-
}),
|
|
105169
|
-
let
|
|
105170
|
-
|
|
105166
|
+
if (tr += jt, kt.fabricFeatureDescList && [...kt.fabricFeatureDescList].reverse().forEach((er, ir) => {
|
|
105167
|
+
const ur = Math.ceil(er.length / ze) * qe + (ir > 0 ? 4 : 0);
|
|
105168
|
+
tr += ur, L.ADD_PRINT_TEXT(Ne - tr, xe, Ie, ur, " ● " + er);
|
|
105169
|
+
}), tr += jt, kt.fabricIntroduction) {
|
|
105170
|
+
let or = Math.ceil(kt.fabricIntroduction.length / ze) * qe;
|
|
105171
|
+
tr += or, L.ADD_PRINT_TEXT(Ne - tr, xe, Ie, or, kt.fabricIntroduction);
|
|
105171
105172
|
}
|
|
105172
|
-
if (
|
|
105173
|
-
let
|
|
105174
|
-
|
|
105173
|
+
if (tr += jt - 2, kt.fabricSeries = kt.fabricSeries || kt.name, kt.fabricSeries) {
|
|
105174
|
+
let or = Math.ceil(kt.fabricSeries.length / 17) * 16;
|
|
105175
|
+
tr += or, L.ADD_PRINT_TEXT(Ne - tr, xe, Ie, or, kt.fabricSeries), L.SET_PRINT_STYLEA(0, "FontSize", 12), L.SET_PRINT_STYLEA(0, "Bold", 1);
|
|
105175
105176
|
}
|
|
105176
105177
|
}
|
|
105178
|
+
function Ue() {
|
|
105179
|
+
const kt = document.createElement("style");
|
|
105180
|
+
kt.innerHTML = `
|
|
105181
|
+
@font-face {
|
|
105182
|
+
font-family: 'CircularXX-Regular';
|
|
105183
|
+
src: url('/CircularXX-Regular.otf');
|
|
105184
|
+
`, document.head.appendChild(kt);
|
|
105185
|
+
const jt = document.createElement("style");
|
|
105186
|
+
jt.innerHTML = `
|
|
105187
|
+
@font-face {
|
|
105188
|
+
font-family: 'CircularXX-Medium';
|
|
105189
|
+
src: url('/CircularXX-Medium.otf');
|
|
105190
|
+
`, document.head.appendChild(jt);
|
|
105191
|
+
}
|
|
105177
105192
|
return {
|
|
105178
105193
|
// printEle,
|
|
105179
105194
|
...toRefs(ie),
|
|
@@ -105182,7 +105197,7 @@ const _sfc_main = defineComponent({
|
|
|
105182
105197
|
print: Oe
|
|
105183
105198
|
};
|
|
105184
105199
|
}
|
|
105185
|
-
}),
|
|
105200
|
+
}), FabricHangTag_vue_vue_type_style_index_0_scoped_bcaad85a_lang = "", _withScopeId = (k) => (pushScopeId("data-v-bcaad85a"), k = k(), popScopeId(), k), _hoisted_1 = {
|
|
105186
105201
|
style: { height: "max-content", display: "block" },
|
|
105187
105202
|
class: "el-upload-list--picture-card"
|
|
105188
105203
|
}, _hoisted_2 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("span", { class: "point" }, null, -1)), _hoisted_3 = {
|
|
@@ -105191,8 +105206,8 @@ const _sfc_main = defineComponent({
|
|
|
105191
105206
|
}, _hoisted_4 = {
|
|
105192
105207
|
class: "print-ele",
|
|
105193
105208
|
ref: "printEle",
|
|
105194
|
-
style: { padding: "5px 10px", "line-height": "9pt", "font-family": "
|
|
105195
|
-
}, _hoisted_5 = { style: { "font-size": "13pt", "font-
|
|
105209
|
+
style: { padding: "5px 10px", "line-height": "9pt", "font-family": "CircularXX-Regular", display: "flex", "flex-direction": "column", "justify-content": "flex-end" }
|
|
105210
|
+
}, _hoisted_5 = { style: { "font-size": "13pt", "font-family": "CircularXX-Medium", "margin-bottom": "4pt", "line-height": "16pt" } }, _hoisted_6 = {
|
|
105196
105211
|
key: 0,
|
|
105197
105212
|
style: { height: "6pt" }
|
|
105198
105213
|
}, _hoisted_7 = { style: { margin: "4pt 0" } }, _hoisted_8 = {
|
|
@@ -105218,7 +105233,7 @@ function _sfc_render(k, L, ie, ae, de, _e) {
|
|
|
105218
105233
|
onClick: L[1] || (L[1] = withModifiers(() => {
|
|
105219
105234
|
}, ["stop"])),
|
|
105220
105235
|
class: "container",
|
|
105221
|
-
style: { height: "
|
|
105236
|
+
style: { height: "338px", width: "180px", background: "#e0e0e1", padding: "10px", color: "#000", "font-size": "6pt", "line-height": "7pt", display: "flex", "flex-direction": "column", "justify-content": "flex-end", "border-radius": "10px", position: "relative", "user-select": "none", "word-break": "break-word" }
|
|
105222
105237
|
}, [
|
|
105223
105238
|
createElementVNode("div", _hoisted_1, [
|
|
105224
105239
|
_hoisted_2,
|
|
@@ -105272,7 +105287,7 @@ function _sfc_render(k, L, ie, ae, de, _e) {
|
|
|
105272
105287
|
[vShow, k.isShow]
|
|
105273
105288
|
]);
|
|
105274
105289
|
}
|
|
105275
|
-
const FabricHangTag = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-
|
|
105290
|
+
const FabricHangTag = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-bcaad85a"]]);
|
|
105276
105291
|
FabricHangTag.install = (k) => k.component(FabricHangTag.name, FabricHangTag);
|
|
105277
105292
|
AgTable.install = (k) => k.component(AgTable.name, AgTable);
|
|
105278
105293
|
const index = (k, L) => {
|