Skip to content

Latest commit

 

History

History
54 lines (35 loc) · 793 Bytes

README.md

File metadata and controls

54 lines (35 loc) · 793 Bytes

MFB Scanner (vue-multi-format-barcode)

Multi-format 1D/2D barcode image processing component in Vue 2+, based on zxing-js library.

Demo

Demo: -

Install

yarn add vue-multi-format-barcode

How to

In main.js:

import Vue from 'vue'
import MultiFormatBarcode from 'vue-multi-format-barcode'

Vue.use(MultiFormatBarcode)

In App.vue:

<multi-format-barcode />

Props & Events

  <multi-format-barcode width="1280" heigth="720" @onDecode="getResult" />

FAQ

--

Development / Contribution

You'll need vue cli globally to debug the component.

npm install -g @vue/cli
npm install -g @vue/cli-service-global

Start a development server for the component

vue serve MultiFormatBarcode.vue