From d2ad1686ef14e4a5b7f6a571dc69b8fd5892cc3e Mon Sep 17 00:00:00 2001 From: thinkasany <480968828@qq.com> Date: Mon, 15 Apr 2024 14:45:38 +0800 Subject: [PATCH] fix: size --- components/qr-code/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/qr-code/index.tsx b/components/qr-code/index.tsx index 1880e6c0f992..3123551abfdb 100644 --- a/components/qr-code/index.tsx +++ b/components/qr-code/index.tsx @@ -55,7 +55,7 @@ const QRCode: React.FC = (props) => { level: errorLevel, bgColor, fgColor: color, - style: { width: style?.width, height: style?.height }, + style: { width: style?.width ?? size, height: style?.height ?? size }, imageSettings: icon ? imageSettings : undefined, };