ant-design/pro-components

🐛[BUG] ProFormTimePicker 默认的variant 变成borderless了,应该是outlined才对

Opened this issue · 0 comments

zcSkr commented

提问前先看看:

https://github.com/ryanhanwu/How-To-Ask-Questions-The-Smart-Way/blob/main/README-zh_CN.md

🐛 bug 描述

ProFormTimePicker组件的variant默认值变成了borderless,本应该是outlined
现在需要手动添加 fieldProps={{ variant: 'outlined' }} 才能解决

📷 复现步骤

🏞 期望结果

引入ProFormTimePicker,使用

期望是outlined的效果

💻 复现代码

<ProFormTimePicker name="cutOff" label={intl.formatMessage({ id: 'columns.cutOff', defaultMessage: 'Cut off' })} rules={[{ required: true }]} width='100%' format="HH:mm:ss" normalize={value => value?.format('HH:mm:ss')} />

© 版本信息

  • ProComponents 版本: [e.g. 2.7.1]
  • umi 版本 4.1.10
  • 浏览器环境 124.0.6367.62(正式版本) (arm64)
  • 开发环境 [e.g. mac OS] mac OS 14.4.1 (23E224)

🚑 其他信息

image