Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Barcode generator for Vue.js

License

NotificationsYou must be signed in to change notification settings

lindell/vue-barcode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Add barcodes to your Vue application super easily with VueBarcode!Try it out!

Supported barcode formats:CODE128EANEAN-13EAN-8EAN-5EAN-2UPC (A)CODE39ITF-14MSIPharmacodeCodabar

It is a light wrapper for theJsBarcode barcode library.

Install

npm install vue-barcode

Use

1. Add VueBarcode as a component

importVueBarcodefrom'vue-barcode';newVue({components:{'barcode':VueBarcode}})

2. Use it

<barcodevalue="value-to-render"format="barcode-format"...moreoptions>  Show this if the rendering fails.</barcode>

Example

Simple example with input binding.Try it out with this JsFiddle!

<divid="app"><inputv-model="barcodeValue"/><br><barcodev-bind:value="barcodeValue">    Show this if the rendering fails.</barcode></div>
importVueBarcodefrom'vue-barcode';varapp=newVue({el:'#app',data:{barcodeValue:'test',},components:{'barcode':VueBarcode}})

Options

All options:

formatwidthheighttextfont-optionsfonttext-aligntext-positiontext-marginfont-sizebackgroundlineColormarginmargin-topmargin-bottommargin-leftmargin-rightdisplay-valueean128

For more information, see theJsBarcode documentation.

About

Barcode generator for Vue.js

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors6


[8]ページ先頭

©2009-2025 Movatter.jp