dist/
├── vue-qrcode.js (75 KB, UMD)
├── vue-qrcode.min.js (18 KB, UMD, compressed)
├── vue-qrcode.common.js (75 KB, CommonJS)
└── vue-qrcode.esm.js (75 KB, ES Module)
npm install @xkeshi/vue-qrcode
- Browser:
window.VueQrcode
- CommonJS:
var VueQrcode = require('@xkeshi/vue-qrcode')
- ES2015:
import VueQrcode from '@xkeshi/vue-qrcode'
Vue.component('qrcode', VueQrcode);
<qrcode value="Hello, World!" :options="{ size: 200 }"></qrcode>
- Type:
String
The value of the qrcode.
- Type:
Object
The options for the qrcode generator. References the QRious's options.
- Type:
String
- Default:
'canvas'
- Options:
'canvas'
and'img'
The tag of the component root element.
- Chrome (latest)
- Firefox (latest)
- Safari (latest)
- Opera (latest)
- Edge (latest)
- Internet Explorer 9+
Maintained under the Semantic Versioning guidelines.