README
Install:
npm i vue3-upc-barcode-generator
Example:
<template>
<Upc @upc-barcode-created="upcBarcodeCreated"></Upc>
</template>
<script>
import Upc from '@/Components/Upc'
export default {
components: {
Upc
},
setup() {
function upcBarcodeCreated(image) {
console.log(image)//the barcode data URL is returned here if you need it
}
return { upcBarcodeCreated }
}
}
</script>