代码拉取完成,页面将自动刷新
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.
Object
The 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.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。