Tencent / Tencent/tdesign-miniprogram

[Calendar] 增加清除功能

Open
#2,249 1 comment 0 reactions 0 assignees View on GitHub

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

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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.