ant-design / pro-components

🏆 Use Ant Design like a Pro!
https://pro-components.antdigital.dev
MIT License
4.04k stars 1.29k forks source link

ProFormCaptcha 设置 width 属性并不生效 #8359

Open jiangkaifree opened 2 weeks ago

jiangkaifree commented 2 weeks ago

🐛 bug 描述

<ProFormCaptcha width='md' // 并未生效 fieldProps={{ size: 'large', prefix: , }} captchaProps={{ size: 'large', }} // 手机号的 name,onGetCaptcha 会注入这个值 phoneName="phone" name="captcha" rules={[ { required: true, message: '请输入验证码', }, ]} placeholder="请输入验证码" // 如果需要失败可以 throw 一个错误出来,onGetCaptcha 会自动停止 // throw new Error("获取验证码错误") onGetCaptcha={async (phone) => { await waitTime(1000); message.success(手机号 ${phone} 验证码发送成功!); }} />

📷 复现步骤

ProFormCaptcha 组件设置 width 属性

🏞 期望结果

对应的 width 并未生效

💻 复现代码

© 版本信息

🚑 其他信息