ant-design / ant-design/pro-components
🐛[BUG] ProTable filterType:'light'时,时间区间相关组件展示与valueType 不符合
- 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 描述
当我将`valueType`设为`dateMonthRange`时,选择弹窗回显是正常的

但是外一层回显就变成了`yyyy-mm-dd`

### 📷 复现步骤
正常操作即可
### 🏞 期望结果
外一层回显展示与valueType一致
### 💻 复现代码
```
import { ProTable } from "@ant-design/pro-components";
import dayjs from "dayjs";
function App() {
return (
<>
);
}
export default App;
```
### © 版本信息
- ProComponents 版本: [e.g. 2.7.9]
- umi 版本
- 浏览器环境 最新
- 开发环境 [e.g. mac OS]
### 🚑 其他信息
以下类型均有此问题
`dateMonthRange`
`dateQuarterRange`
`dateYearRange`
`dateWeekRange`
Contributor guide
Research direction
Start from the ProTable search configuration with filterType set to light and reproduce the behavior using the provided dateMonthRange example. Compare the outer filter display with the valueType formatting for dateMonthRange, dateQuarterRange, dateYearRange, and dateWeekRange; the work is done when each range displays consistently with its valueType.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100