프로젝트
GitHub에서 보기
lindell/vue-barcode
소개
Barcode generator for Vue.js
웹 및 앱 개발측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalVueBarcode
Add barcodes to your Vue application super easily with VueBarcode! Try it out!
Supported barcode formats:
CODE128
EAN
EAN-13
EAN-8
EAN-5
EAN-2
UPC (A)
CODE39
ITF-14
MSI
Pharmacode
Codabar
It is a light wrapper for the JsBarcode barcode library.
Install
npm install vue-barcode
Use
1. Add VueBarcode as a component
import VueBarcode from 'vue-barcode';
new Vue({
components: {
'barcode': VueBarcode
}
})
2. Use it
<barcode value="value-to-render" format="barcode-format" ...more options>
Show this if the rendering fails.
</barcode>
Example
Simple example with input binding. Try it out with this JsFiddle!
<div id="app">
<input v-model="barcodeValue" /><br>
<barcode v-bind:value="barcodeValue">
Show this if the rendering fails.
</barcode>
</div>
import VueBarcode from 'vue-barcode';
var app = new Vue({
el: '#app',
data: {
barcodeValue: 'test',
},
components: {
'barcode': VueBarcode
}
})
Options
All options:
format
width
height
text
font-options
font
text-align
text-position
text-margin
font-size
background
lineColor
margin
margin-top
margin-bottom
margin-left
margin-right
display-value
ean128
For more information, see the JsBarcode documentation.
관련 프로젝트 살펴보기
불러오는 중…