1.0.2 • Published 2 years ago
qrcode-xizaozao v1.0.2
html
<canvas ref="canvas" width="200" height="200" id="canvas"></canvas>
js
import { QRCodeDraw } from 'qrcode-xizaozoa'
let qrcodedraw = new QRCodeLib.QRCodeDraw()
qrcodedraw.draw(
this.$refs.canvas,
this.value,
{
errorCorrectLevel:"H",// ['L','M','Q','H'] 质量由低到高 L =》 LOW H
margin:10,
backgroundColor:"#fff",
color:'#000',
scale:10
},
(error,canvas,width) => {
// this.generated = true
})