ant-design / ant-design/pro-components

🐛[BUG] ProTable filterType:'light'时,时间区间相关组件展示与valueType 不符合

Open
#8,453 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 描述
当我将`valueType`设为`dateMonthRange`时,选择弹窗回显是正常的
![image](https://github.com/ant-design/pro-components/assets/26560612/ee281164-fdf2-4ee1-a1a1-1bcff68a3a97)
但是外一层回显就变成了`yyyy-mm-dd`
![image](https://github.com/ant-design/pro-components/assets/26560612/5babb5d3-d762-4975-9d4c-258f2a7773dd)

### 📷 复现步骤

正常操作即可

### 🏞 期望结果

外一层回显展示与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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.