vue-qr-code
Installation
Inside your project folder do:
npm install --save vue-qr-code
on vue-cli project
Import the import file:
import Vue from 'vue'
import VueQrCode from 'vue-qr-code'
Vue.use(VueQrCode);
or, load as needed:
import QrCode from 'vue-qr-code/QRcode.vue';
export default {
components:{
QrCode
}
}
usage
<qr-code val="hello word!"></qr-code>
result:

Attributes
| 参数 | 类型 | 默认值 |
|---|---|---|
| val | String | Hello Word! |
| isObj | Boolean | false |
| object | Object | {} |
Related Packages
vue-qr-generator
Create QR codes with a simple Vue component, Fork of vue-qrcode-component that u...
34,252
0
Version History
| Version | Released | Vue | License |
|---|---|---|---|
| 1.0.1 | ^2.5.2 | MIT |