dist/
├── vue-barcode.js (UMD)
├── vue-barcode.min.js (UMD, compressed)
├── vue-barcode.common.js (CommonJS)
└── vue-barcode.esm.js (ES Module)
npm install @chenfengyuan/vue-barcode vue
In browser:
<script src="/path/to/vue.js"></script>
<script src="/path/to/vue-barcode.js"></script>
<script>Vue.component(VueBarcode.name, VueBarcode);</script>
import Vue from 'vue';
import VueBarcode from '@chenfengyuan/vue-barcode';
Vue.component(VueBarcode.name, VueBarcode);
<barcode value="Hello, World!" :options="{ displayValue: false }"></barcode>
- Type:
String
The value of the bar code.
- Type:
Object
The options for the bar code generator. References the JsBarcode's options.
- Type:
String
- Default:
'canvas'
- Options:
'canvas'
,'svg'
and'img'
The tag name of the component's root element.
- Chrome (latest)
- Firefox (latest)
- Safari (latest)
- Opera (latest)
- Edge (latest)
- Internet Explorer 9+
Maintained under the Semantic Versioning guidelines.