2.2.2 • Published 1 year ago
vue-qrcode v2.2.2
VueQrcode
🤳 A Vue component for QR code generation with qrcode
TOC
Demo
Usage
<template>
<vue-qrcode
value="https://www.1stg.me"
@change="onDataUrlChange"
/>
</template>
<script>
import VueQrcode from 'vue-qrcode'
export default {
data() {
return {
dataUrl: null,
}
},
components: {
VueQrcode,
},
methods: {
onDataUrlChange(dataUrl) {
this.dataUrl = dataUrl
},
},
}
</script>
Available Props
prop | type (range) | default value |
---|---|---|
version | number (1-40) | N/A |
errorCorrectionLevel | String ('low', 'medium', 'quartile', 'high', 'L', 'M', 'Q', 'H') | 'M' |
maskPattern | number (0-7) | N/A |
toSJISFunc | Function | N/A |
margin | number | 4 |
scale | number | 4 |
width | number | N/A |
color | { dark: string; light:string } | { dark: '#000000ff', light: '#ffffffff' } |
type | string ('image/png', 'image/jpeg', 'image/webp') | 'image/png' |
quality | number (0-1) | 0.92 |
value | string \|Array<{ data: string; mode?: string }> | N/A |
Available Events
event | type |
---|---|
change | dataUrl: string |
Sponsors
1stG | RxTS | UnTS |
---|---|---|
Backers
1stG | RxTS | UnTS |
---|---|---|
Changelog
Detailed changes for each release are documented in CHANGELOG.md.
License
2.2.2
1 year ago
2.2.1
1 year ago
2.2.0
3 years ago
2.1.0
3 years ago
2.0.0
3 years ago
1.0.1
3 years ago
1.0.0
4 years ago
0.3.6
4 years ago
0.4.0
4 years ago
0.3.5-beta.1
4 years ago
0.3.6-beta.0
4 years ago
0.3.5-beta.2
4 years ago
0.3.5-beta.0
4 years ago
0.3.5
4 years ago
0.3.4
4 years ago
0.3.3
5 years ago
0.3.2
5 years ago
0.3.1
5 years ago
0.3.0
5 years ago
0.2.3
5 years ago
0.2.2
6 years ago
0.2.1
6 years ago
0.2.0
6 years ago
0.1.2
6 years ago
0.0.2
9 years ago
0.0.1
9 years ago