mirror of
https://github.com/MrXujiang/h5-Dooring.git
synced 2025-12-13 02:52:50 +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>
|
<img src={logo} alt=""></img>
|
||||||
</div>
|
</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%' }} />
|
<img src={qrcode && qrcode[0].url} alt={text} style={{ width: '100%' }} />
|
||||||
<div style={{ textAlign: 'center', color, fontSize, paddingTop: '8px' }}>{text}</div>
|
<div style={{ textAlign: 'center', color, fontSize, paddingTop: '8px' }}>{text}</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user