|
|
|
@ -34,6 +34,6 @@ onMounted(generate)
|
|
|
|
|
</script> |
|
|
|
|
|
|
|
|
|
<template> |
|
|
|
|
<svg class="w-full" data-testid="barcode" v-show="!errorForCurrentInput" ref="barcodeSvgRef" @click="onBarcodeClick"></svg> |
|
|
|
|
<svg v-show="!errorForCurrentInput" ref="barcodeSvgRef" class="w-full" data-testid="barcode" @click="onBarcodeClick"></svg> |
|
|
|
|
<slot v-if="errorForCurrentInput" name="barcodeRenderError" /> |
|
|
|
|
</template> |
|
|
|
|