king
2021-09-02 3d4bc79a80eb9cff0f8ef7c53f9685c9ff9fbd2d
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}