Tencent / Tencent/tdesign-react
[timepicker] TimePicker 的onChange事件里没有把context吐出来
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
重现步骤
TimePicker和DatePicker是类似的,都有clearable属性,DatePicker的onChange里有第二个参数context,但是TimePicker没有这个参数,最新版的文档里也没有。
期望结果
如果提供了clearable属性,TimePicker组件应该也要在onChange里的context里反馈出用户当时的context
希望 能提供这个context,知道用户onChange的具体trigger行为
实际结果
实际没提供context属性
框架版本
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
Compare the TimePicker and DatePicker onChange APIs and their documentation, focusing on the clearable behavior described in the issue. Reproduce the TimePicker callback and verify that its context reports the user's trigger; done when the callback and current documentation expose the expected context consistently.
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
- 42/100