最近在使用vue3重构项目,发现之前vue-barcode不兼容vue3,于是自己花时间琢磨了一下这个插件,写完发布上去vue3-barcode,获得了vue-barcode也是jsbarcode作者Johan Lindell许可。
安装
npm install vue3-barcode
使用
import Vue3Barcode from 'vue3-barcode'
export default defineComponent({
components: {
Vue3Barcode,
},
})
<vue3-barcode value="vue3-barcode" :height="50" />
参数
具体参照JsBarcode