ant-design / ant-design/pro-components

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

Open
#8,369 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
4.8k
Forks
1.4k
Avg merge
10h 44m
Merged PRs (30d)
3

Description

提问前先看看:

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的效果
### 💻 复现代码
` 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](https://github.com/ant-design/pro-components/assets/30515821/b9b0c861-5c88-4f60-82d5-85928e7913bd)

Contributor guide

Open the contributing guide

Research direction

Start at the ProFormTimePicker component entry point and reproduce the reported example with umi 4.1.10 and the listed browser environment. Compare the default variant with fieldProps={{ variant: 'outlined' }}; done means the component uses outlined styling without that workaround and the behavior is covered by an appropriate test.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.