opentiny / opentiny/tiny-vue

✨ [Feature]: DatePicker component: when you set the type to type= "datetimerange", you want the disabledDate property to not only disable date

Open
#283 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement good first issue
Dominant language
Less
Stars
2.3k
Forks
355
Avg merge
4d 14h
Merged PRs (30d)
24

Description

What problem does this feature solve

DatePicker组件:设置类型为type="datetimerange"时,希望disabledDate属性不仅仅能disable掉date,也能disable掉time,即time部分可以像TimePicker单独用的时候一样,支持只选择某个范围;
常用场景:希望选择date范围为最近三天的同时,结束时间date为今天,而对应的time可选范围也希望能设定为不超过当前时间

What does the proposed API look like

image

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

Locate the DatePicker component and its datetimerange handling first. Compare the disabledDate behavior with the standalone TimePicker, then verify that both the date and time portions honor the requested range while existing DatePicker behavior remains intact.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 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.