ant-design / ant-design/pro-components

🐛[BUG] ProFormTimePicker.RangePicker 获取时间区间,当name超过两层时,值为日期+时间格式

Open
#8,223 0 comments 0 reactions 0 assignees View on GitHub
⭕️ bug form
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.RangePicker 获取时间区间,当name超过两层时,值为日期+时间格式

### 📷 复现步骤

打开控制台,选择日期范围即可看到
### 🏞 期望结果

期望返回 HH:mm 时间格式
### 💻 复现代码

https://codesandbox.io/p/sandbox/captcha-forked-m6yk2x?file=%2FApp.tsx%3A28%2C9
### © 版本信息

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

### 🚑 其他信息

![image](https://github.com/ant-design/pro-components/assets/50571024/b7c9522c-c186-4d74-ad29-4c6aed3bc9ab)

Contributor guide

Open the contributing guide

Research direction

Start with the ProFormTimePicker.RangePicker reproduction in the linked CodeSandbox, particularly App.tsx around line 28. Check how a name deeper than two levels affects the selected range value, then verify that the result uses HH:mm rather than a date-and-time format.

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.