Sponsor Lightning support.

This commit is contained in:
softsimon
2020-10-26 18:29:25 +07:00
parent 82dd3eaf75
commit a3457a723a
7 changed files with 72 additions and 14 deletions

View File

@@ -8,6 +8,7 @@ import * as QRCode from 'qrcode/build/qrcode.js';
})
export class QrcodeComponent implements AfterViewInit {
@Input() data: string;
@Input() size = 125;
@ViewChild('canvas') canvas: ElementRef;
qrcodeObject: any;
@@ -22,8 +23,8 @@ export class QrcodeComponent implements AfterViewInit {
dark: '#000',
light: '#fff'
},
width: 125,
height: 125,
width: this.size,
height: this.size,
};
if (!this.data) {