Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Change the behaviour of MonthField range selection

未关闭
#924 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
35/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
停滞
技术栈
typescript
领域
frontend

调研方向

首先定位 MonthField 的实现及其范围选择行为。将建议的点击顺序与使用两个 MonthFields 的替代方案进行比较,并验证以四月结束的范围表示的是四月的最后一天,而不是四月 1 日。

由索引模型根据 Issue 内容生成。

描述

would be nice to have

Currently, you have to click and hold the mouse down if you want to select the month range.
It confuses the users because they think they should click once for the start of the range, and one more time to select the end of the range.

Would be nice if you could -

  1. click the first time to select the start of the month range =>
  2. keep the monthpicker open =>
  3. click another month to select the end of the range =>
  4. close the monthpicker.

The other solution is that we create two MonthFields that would act as the beginning and the ending of the month range.
The issue here is that MonthField always selects the beginning of the month. There is no option/property for selecting the last day of the month.
So we end up with the range that shows January-April but actually starts with 1 January and ends with 1 April, instead of 30 April.

主要语言
TypeScript
星标
492
派生
71
平均合并
8 小时 27 分钟
30 天内合并 PR
6

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

codaxy/cxjs 的其他 Issue

查看 codaxy/cxjs 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。