Tencent / Tencent/tdesign-react
[DatePicker] needConfirm 属性支持全部场景使用
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 965
- Forks
- 373
- Avg merge
- 3d 6h
- Merged PRs (30d)
- 17
Description
tdesign-react 版本
1.5.5+
重现链接
No response
重现步骤
设想场景:用户通过快速 Preset 点击 Now,然后再基于 Now 微调时间,但现有 DatePicker 逻辑,会立即隐藏 Popup 导致用户需要再次打开 Popup 调整
相对的,TimePicker 组件点击 “此刻” 的行为,只是确认了时间,没有隐藏 Popup,待用户手动点击 “确认”
期望结果
needConfirm 可以控制 Presets 的行为,给用户调整机会
或者添加自定义 renderExtraFooter类似接口(参考 Antd),让用户自己控制 presets 并管理状态
实际结果
No response
框架版本
No response
浏览器版本
No response
系统版本
No response
Node版本
No response
补充说明
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by comparing DatePicker preset handling with the TimePicker “此刻” behavior; the issue does not name files or tests. Decide whether needConfirm should govern presets or whether a footer API is needed, then add coverage showing users can adjust the preset value before confirming.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100