From 3d4bc79a80eb9cff0f8ef7c53f9685c9ff9fbd2d Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期四, 02 九月 2021 23:17:36 +0800 Subject: [PATCH] 2021-09-02 --- src/components/qrcode/index.jsx | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/src/components/qrcode/index.jsx b/src/components/qrcode/index.jsx index 122a9b1..0fbc0cc 100644 --- a/src/components/qrcode/index.jsx +++ b/src/components/qrcode/index.jsx @@ -29,13 +29,17 @@ const { value, card } = this.props let color = card.color let size = card.qrWidth || 50 + let width = size + 'px' if (/rgb/ig.test(color)) { color = this.hexify(color) } + if (size < 640) { + size = 640 + } return ( - <div className="qrcode-box"> + <div className="qrcode-box" style={{width: width, height: width}}> <QrCode value={value} size={size} -- Gitblit v1.8.0