stash
This commit is contained in:
parent
8622e488a4
commit
eaae7c286a
3 changed files with 75 additions and 32 deletions
|
|
@ -150,7 +150,7 @@ import LabelLayoutPreview from "@/components/LabelLayoutPreview.vue";
|
|||
|
||||
import {MultiPrinterBlob, canvasToBitmap, bitmapToCanvas} from "../../vendor/weblabel.js";
|
||||
import {buildLabelContent, buildLabelFields} from "@/label-content.js";
|
||||
import {LABEL_TEMPLATES, tapeFromStatus, drawLabel, drawFallbackLabel} from "@/label-drawing.js";
|
||||
import {LABEL_TEMPLATES, tapeFromStatus, drawLabel, drawFallbackLabel, templateContent} from "@/label-drawing.js";
|
||||
|
||||
// Served verbatim from public/vendor/ rather than bundled: libweblabel.js's
|
||||
// own emscripten glue resolves its .wasm sibling relative to *its own*
|
||||
|
|
@ -210,11 +210,7 @@ export default {
|
|||
return LABEL_TEMPLATES.find(t => t.id === this.selectedTemplate) || LABEL_TEMPLATES[0];
|
||||
},
|
||||
selectedContent() {
|
||||
const t = this.currentTemplate;
|
||||
return {
|
||||
qr: t.qr ? this.fields[t.qr] : null,
|
||||
text: t.text ? this.fields[t.text] : null,
|
||||
};
|
||||
return templateContent(this.currentTemplate, this.fields);
|
||||
},
|
||||
deviceRows() {
|
||||
if (!this.blob) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue