src/components/qrcode/index.jsx
@@ -28,6 +28,7 @@ render() { const { value, card } = this.props let color = card.color let size = card.qrWidth || 50 if (/rgb/ig.test(color)) { color = this.hexify(color) @@ -37,12 +38,12 @@ <div className="qrcode-box"> <QrCode value={value} size={card.qrWidth || 50} size={size} fgColor={color} imageSettings={card.url ? { src: card.url, height: (card.qrWidth || 50) / 4, width: (card.qrWidth || 50) / 4, height: size / 5, width: size / 5, excavate: true } : null}/> </div>