This commit is contained in:
Viet An
2026-06-25 13:34:36 +07:00
parent 9f0729ccd9
commit 31ac60a282
7 changed files with 41 additions and 14 deletions

View File

@@ -0,0 +1,25 @@
<script setup>
import JsBarcode from "jsbarcode";
const props = defineProps({
imei: {
type: String,
required: true,
},
});
const barcodeSvg = useTemplateRef("barcode");
onMounted(() => {
if (barcodeSvg.value)
JsBarcode(barcodeSvg.value, props.imei, {
background: "transparent",
width: 1,
height: 15,
displayValue: false,
});
});
</script>
<template>
<svg ref="barcode"></svg>
</template>