|
|
6 bulan lalu | |
|---|---|---|
| .. | ||
| dist | 6 bulan lalu | |
| src | 6 bulan lalu | |
| CHANGELOG.md | 6 bulan lalu | |
| LICENSE | 6 bulan lalu | |
| README.md | 6 bulan lalu | |
| package.json | 6 bulan lalu | |
QR code component for Vue.js, bases on node-qrcode.
dist/
├── vue-qrcode.js (UMD)
├── vue-qrcode.min.js (UMD, compressed)
├── vue-qrcode.common.js (CommonJS)
└── vue-qrcode.esm.js (ES Module)
npm install @chenfengyuan/vue-qrcode vue
In browser:
<script src="/path/to/vue.js"></script>
<script src="/path/to/vue-qrcode.js"></script>
<script>Vue.component(VueQrcode.name, VueQrcode);</script>
import Vue from 'vue';
import VueQrcode from '@chenfengyuan/vue-qrcode';
Vue.component(VueQrcode.name, VueQrcode);
<qrcode value="Hello, World!" :options="{ width: 200 }"></qrcode>
StringundefinedThe value of the QR code.
ObjectundefinedThe options for the QR code generator. References the node-qrcode's options.
String'canvas''canvas', 'img' and other element tags.The tag name of the component's root element.
Maintained under the Semantic Versioning guidelines.