You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
585 B
17 lines
585 B
// 本文件由FirstUI授权予内蒙古晟誉网络科技有限责任公司(手机号:151 48 2 28 1 08,身份证尾号:1R6T39)专用,请尊重知识产权,勿私下传播,违者追究法律责任。
|
|
import QRCode from './lib/QRCode.js'
|
|
import ErrorCorrectLevel from './lib/ErrorCorrectLevel.js'
|
|
|
|
var qrcode = function(data, opt) {
|
|
opt = opt || {};
|
|
var qr = new QRCode(opt.typeNumber || -1,
|
|
opt.errorCorrectLevel || ErrorCorrectLevel.H);
|
|
qr.addData(data);
|
|
qr.make();
|
|
|
|
return qr;
|
|
};
|
|
|
|
qrcode.ErrorCorrectLevel = ErrorCorrectLevel;
|
|
|
|
export default qrcode;
|
|
|