fix: qrcode size error, close #6418

pull/6428/head
tangjinzhou 2 years ago
parent 2eaad16331
commit 33d1553908

@ -240,7 +240,7 @@ export const QRCodeCanvas = defineComponent({
return () => { return () => {
const size = props.size ?? DEFAULT_SIZE; const size = props.size ?? DEFAULT_SIZE;
const canvasStyle = { height: size, width: size }; const canvasStyle = { height: `${size}px`, width: `${size}px` };
let img = null; let img = null;
if (imgSrc.value != null) { if (imgSrc.value != null) {

Loading…
Cancel
Save