Package Exports
- qrcode.vue
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (qrcode.vue) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
qrcode.vue
A Vue component for QR_code.
Start quick
the qrcode.vue
component can use in you Vue app.
npm install --save qrcode.vue
Usage
e.g.
import Vue from 'vue';
import QrcodeVue from 'qrcode.vue';
new Vue({
el: '#root',
data: {
value: 'https://example'
},
template: `<qrcode-vue :value="value"></qrcode-vue>`,
components: {
QrcodeVue
}
})
Component props
prop | type | default value | expain |
---|---|---|---|
value |
String |
'' |
qrcode value |
className |
String |
'' |
qrcode element className |
size |
Number |
100 |
qrcode element size |
level |
String |
L |
error level |
background |
String |
#fff |
qrcode background color |
foreground |
String |
#000 |
qrcode color |