ant-design / ant-design/pro-components
👑 [需求]期望ProTable的的search form中,valuetype 设置为date相关时,例如dateTimeRange等,即使 从syncToUrl get的是秒级时间戳也能正常显示时间
- Dominant language
- TypeScript
- Stars
- 4.8k
- Forks
- 1.4k
- Avg merge
- 10h 44m
- Merged PRs (30d)
- 3
Description
### 🔩 所属模块或组件
ProTable
### 🥰 需求描述1728403200
维护者您好,ProTable 将 dateFormatter 设置为 (value) => value.format('X')时,期望ProTable的的search form中,valuetype 设置为date相关时,例如dateTimeRange等,即使 从syncToUrl get的是秒级时间戳也能正常显示时间,而不是必须加上三个0成为毫秒级时间戳之后才能正常显示。也有可能是我的使用方式不正确,也欢迎各位指导一下正确的用法,感谢。
### ⛰ 功能需求适用场景
前后端交互规范为秒级时间戳时,方便定制,不用转换就可以操作。
### 🚑 其他信息



Contributor guide
Research direction
Start by examining ProTable's search form behavior for date-related valueTypes, especially dateTimeRange, when values are restored through syncToUrl. Compare that with the issue's dateFormatter setting of value.format('X'), which produces seconds-level timestamps. Done means date fields display correctly when syncToUrl restores seconds-level timestamps, without requiring conversion to milliseconds.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100