qrcode-uni
v1.0.2
Published
### 用法 #### 安装 ```js npm install qrcode-uni ``` #### 使用 ```vue <tmeplate> <canvas id="qrcode" canvas-id="qrcode" style="width: 440rpx; height: 440rpx" ></canvas> </tmeplate> ``` ```js // js import {qrcode} from qrcode-uni var qrData = '1111' qrcodeUtf16({
Downloads
8
Readme
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