ProFormCaptcha 设置 width 属性并不生效
Opened this issue · 0 comments
jiangkaifree commented
🐛 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
并未生效
💻 复现代码
© 版本信息
- ProComponents 版本: [2.5.0]