ant-design / ant-design/pro-components

🐛[BUG] ProFormDateTimeRangePicker组件value格式错误,无法格式化!!!

Open
#7,813 6 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 描述

ProFormDateTimeRangePicker 组件抛出的结果值异常导致无法处理
不是规范的dayjs格式

### 📷 复现步骤

使用ProFormDateTimeRangePicker组件,在submit时查看对应输出即可

下图是异常结果
![image](https://github.com/ant-design/pro-components/assets/29968512/3dce1031-fc2e-4c54-9c16-26dfdb203ca2)

### 🏞 期望结果

下图是antd组件抛出的结果
![image](https://github.com/ant-design/pro-components/assets/29968512/f9d6a9fe-4cf5-46ea-b471-f51549596641)

### 💻 复现代码

```javascript
{console.log(values)}}>

````

### © 版本信息

- ProComponents 版本: [e.g. 4.0.0]
- umi 版本
- 浏览器环境
- 开发环境 [e.g. mac OS]

### 🚑 其他信息

Contributor guide

Open the contributing guide

Research direction

Start at the ProFormDateTimeRangePicker entry point and reproduce the issue with the QueryFilter example in the report. Compare the submitted value with the Ant Design component’s result and determine the expected dayjs-compatible format. Done means the range picker submits a standard, processable value rather than the reported malformed result.

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
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.