ionic-team / ionic-team/ionic-framework
feat: datetime wheel picker type to enter month, day, and year
- 主要语言
- TypeScript
- 星标
- 52.7k
- 派生
- 13.3k
- 平均合并
- 1 天 15 小时
- 30 天内合并 PR
- 51
描述
### Prerequisites
- [X] I have read the [Contributing Guidelines](https://github.com/ionic-team/ionic-framework/blob/main/.github/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
If you tap on on the month, day or year of a [preferWheel] ion-datepicker component you should be able to bring up the keyboard and type in text. This allows quick, validated entry of a year (for example). For power users, this is a very important feature to be able to input dates fast.
Android spinner date picker. If you tap on the text/numbers, you can type in the value.

### Describe the Use Case
- For casual users, the spinner date picker is easy to use
- For more serious business apps, lots of dates need inputted.
- The preferWheel picker should allow the user the option of tapping on part of a date, and typing it in using the keyboard
### Describe Preferred Solution
Emulate Android spinner picker functionality.
### Describe Alternatives
- I've considered making a custom date picker component but I think I would lose out on the advantages that the main ion-datepicker component brings.
- I've considered using a native date picker plugin but I think a cross-platform solution is ideal since this is an enhancement that would make the ion-datepicker strictly better.
### Related Code
_No response_
### Additional Information
_No response_
贡献指南
调研方向
Start by locating the ion-datepicker implementation and the preferWheel rendering and interaction entry points. Compare the requested behavior with the Android spinner example, then define validated keyboard entry for month, day, and year and verify it across the supported picker modes and platforms.
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- typescript
- 领域
- frontend, mobile-dev
- Issue 类型
- 功能
- 难度
- 5/5
- 预计耗时
- 一周以上
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 25/100