Tencent / Tencent/tdesign-miniprogram
[Calendar] 增加清除功能
Open
Nobody has claimed this yet.
- Dominant language
- Vue
- Stars
- 1.8k
- Forks
- 337
- Avg merge
- 1d 21h
- Merged PRs (30d)
- 19
Description
这个功能解决了什么问题
日历组件常用于日期筛选器,而筛选器一般需要支持将值设置为null,表示不筛选日期
你建议的方案是什么
新增一个清除按钮,将值设置为null | [null, null]
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 locating the Calendar component and its value-handling entry point. Check how single-date and range values are represented, then verify that a clear action produces null or [null, null] and that the existing calendar behavior remains intact.
Written by the indexing model from the issue text.
Assessment
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100