Tencent / Tencent/tdesign-react

[DatePicker] needConfirm 属性支持全部场景使用

Open
#3,576 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

💪🏻 enhancement
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.