ant-design / ant-design/pro-components
👑 [需求]Schema Form 中 dateRange 中设置 presets 中的value ,官方antd 中只支持 dayjs格式,这边能支持下string日期格式吗?转一下?
Open
- 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
### 🔩 所属模块或组件
### 🥰 需求描述
如果 columns是后台传过来的json 没法传dayjs格式
### ⛰ 功能需求适用场景
### 🧐 解决方案
### 🚑 其他信息
Contributor guide
Research direction
Start at the BetaSchemaForm dateRange fieldProps handling and trace how presets values are passed to the date picker. Check the existing dateRange behavior and determine the expected conversion for string date values supplied by JSON-driven columns. Done means dateRange presets accept the requested string format without breaking existing dayjs values, with coverage for both forms.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100