vue canvas组件
认真地 (vue-qriously)
A Vue.js 2 component to draw QR codes on an HTML Canvas using qrious.
一个Vue.js 2组件,用于使用qrious在HTML Canvas上绘制QR代码。
安装 (Installation)
-
带模块 (With Modules)
// ES6 import Vue from 'vue' import VueQriously from 'vue-qriously' Vue.use(VueQriously) // ES5 var Vue = require('vue') Vue.use(require('vue-qriously').default)
-
<script>
包含 (<script>
Include)Just include
./dist/vue-qriously.js
after Vue itself.仅在Vue本身之后包含
./dist/vue-qriously.js
。
用法 (Usage)
There's nothing you need to do in JavaScript except for installation. To use the plugin, simply use the qriously
component.
除了安装之外,您不需要使用JavaScript进行任何操作。 要使用该插件,只需使用qriously
组件。
<qriously value="Hello World!" :size="200" />
You may use all of these props to change the format of your QR code.
您可以使用所有这些道具来更改QR码的格式。
翻译自: https://vuejsexamples.com/a-vue-js-2-component-to-draw-qr-codes-on-an-html-canvas-using-qrious/
vue canvas组件