mirror of
https://github.com/MrXujiang/h5-Dooring.git
synced 2025-12-12 10:12:51 +00:00
🆕 新增二维码组件响应式 🐛 修复二维码组件无法调整大小的bug
This commit is contained in:
parent
b4bef0c3af
commit
52f153a59d
@ -10,7 +10,7 @@ const Qrcode = memo((props: IQrcodeConfig & { isTpl: boolean }) => {
|
||||
<img src={logo} alt=""></img>
|
||||
</div>
|
||||
) : (
|
||||
<div style={{ width: '240px', margin: '16px auto' }}>
|
||||
<div style={{ width: '100%', maxWidth: '220px', margin: '16px auto' }}>
|
||||
<img src={qrcode && qrcode[0].url} alt={text} style={{ width: '100%' }} />
|
||||
<div style={{ textAlign: 'center', color, fontSize, paddingTop: '8px' }}>{text}</div>
|
||||
</div>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user