1.0.2 • Published 2 years ago

qrcode-uni v1.0.2

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

Uni-APP 生码工具

用法

安装

npm install qrcode-uni

使用

<tmeplate>
<canvas id="qrcode" canvas-id="qrcode" style="width: 440rpx; height: 440rpx" ></canvas>
</tmeplate>
// js
import {qrcode} from qrcode-uni
var qrData = '1111'
qrcodeUtf16({
    text: qrData,
    canvasId: 'qrcode',
    width: 256,
    height: 256,
    x: 0,
    y: 0,
    typeNumber: -1,
    correctLevel: QRErrorCorrectLevel.L,
    background: '#ffffff',
    foreground: '#000000',
    image: {
        imageResource: '',
        dx: 0,
        dy: 0,
        dWidth: 100,
        dHeight: 100,
    },
  
});

16进制生码

import {qrcodeHex} from qrcode-uni
1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago