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