ant-design / ant-design/pro-components

ProTable组件中的 columns valueType: 'dateRange' 类型使用逻辑不一致 🐛[BUG]

Open
#8,711 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 描述
image

官网中使用valueType。比如选择了开始日期之后。之前的日期还是可以选择的

![image](https://github.com/user-attachments/assets/37f0b4e5-3d8f-4ad6-afb3-aa8a75393463)

项目引入使用后。选择了开始日期之后。之前的日期不可选择了。结束日期也是同样的逻辑

请问怎么能保持和官网一致?

{
title: '日期区间',
key: 'dateRange',
dataIndex: 'createdAtRange',
valueType: 'dateRange',
},

"@ant-design/pro-components": "2.6.43",
"antd": "5.12.2",
"umi-presets-pro": "^2.0.2"

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the ProTable configuration shown in the issue with valueType set to dateRange and the listed @ant-design/pro-components and antd versions. Compare its date-selection behavior with the official site examples referenced by the report. Done means the start and end date restrictions behave consistently with the official example.

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
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.