Skip to content

Commit 33d1553

Browse files
committed
fix: qrcode size error, close #6418
1 parent 2eaad16 commit 33d1553

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/qrcode/QRCodeCanvas.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ export const QRCodeCanvas = defineComponent({
240240

241241
return () => {
242242
const size = props.size ?? DEFAULT_SIZE;
243-
const canvasStyle = { height: size, width: size };
243+
const canvasStyle = { height: `${size}px`, width: `${size}px` };
244244

245245
let img = null;
246246
if (imgSrc.value != null) {

0 commit comments

Comments
 (0)