From 82db7afb5c6e9c900b2b13fc560ddb907c0c1839 Mon Sep 17 00:00:00 2001 From: smileluck <12386904+smileluck@users.noreply.github.com> Date: Thu, 12 Dec 2024 11:54:03 +0800 Subject: [PATCH] fix: qr-code/src/QrCode.tsx padding and size error --- src/qr-code/src/QrCode.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/qr-code/src/QrCode.tsx b/src/qr-code/src/QrCode.tsx index 9f82507eb0d..13947c67eb4 100644 --- a/src/qr-code/src/QrCode.tsx +++ b/src/qr-code/src/QrCode.tsx @@ -337,8 +337,8 @@ export default defineComponent({ style={{ padding: typeof padding === 'number' ? `${padding}px` : padding, backgroundColor, - width: `${size + padding}px`, - height: `${size + padding}px`, + width: `${size - padding * 2}px`, + height: `${size - padding * 2}px`, ...cssVars }} >