ionic-team / ionic-team/ionic-framework

feat: Make Datetime emit the working parts of the date

未关闭
#31,045 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
needs: investigation
主要语言
TypeScript
星标
52.7k
派生
13.3k
平均合并
1 天 14 小时
30 天内合并 PR
50

描述

### Prerequisites

- [x] I have read the [Contributing Guidelines](https://github.com/ionic-team/ionic-framework/blob/main/docs/CONTRIBUTING.md#creating-an-issue).
- [x] I agree to follow the [Code of Conduct](https://ionicframework.com/code-of-conduct).
- [x] I have searched for [existing issues](https://github.com/ionic-team/ionic-framework/issues) that already include this feature request, without success.

### Describe the Feature Request

There should be an ion-datetime event that gets fired whenever someone commits changes to the month, year, et cetera.

### Describe the Use Case

Some people may want to highlight days per-month in the month view. Currently, one has to submit an entire list of dots for every entry they want to highlight, which is resource intensive with large data sets.

Narrowing the view to the month the person is currently viewing would make this process faster.

### Describe Preferred Solution

an `ionPeek` event with `event.detail.parts` that would include the object that is in `this.workingParts`.

### Describe Alternatives

_No response_

### Related Code

_No response_

### Additional Information

_No response_

贡献指南

打开贡献指南

调研方向

首先定位 ion-datetime 的实现以及请求中引用的 workingParts 状态。跟踪月份和年份变更的提交方式,然后定义围绕这些变更的事件行为,并验证其 detail 会公开 working date parts,而不要求提供完整的高亮日期列表。

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

评估

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

把新 issue 发到你的邮箱

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