ionic-team / ionic-team/ionic-framework
feat(item-sliding): add stacked style for ios when expanding or collapsing
- 主要语言
- 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/.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 report this problem, without success.
### Ionic Framework Version
- [ ] v4.x
- [ ] v5.x
- [X] v6.x
- [ ] Nightly
### Current Behavior
`ion-item-sliding` does not match IOS specifications:
- `ion-item-option` Elements are side by side instead of on top of each other (stacked)
- if expanded, `ion-item-option` won't stretch on slide before expandable `ion-item-option` will trigger (rubberband effect)
- there is no reverse animation if expanded state is triggered and slide is swiped back again
- sliding to expanded state and back again should trigger haptic feedback
- swiping `ion-item-sliding` doesn't feel that smooth as in native
- expanded `ion-item-option` should stretch to safe-area (e.g. aligned with `ion-title`) and content should align left instead right
- there should be a delete animation, when fully swiping the expandable `ion-item-option`. Since `expandable` does not always mean, that we want to remove the item, we need some further options like in `ion-infinite-scroll` where we can call `event.target.complete()`, which could result in triggering the delete animation.
### Expected Behavior
### `ion-item-option` should be stacked
| Reminder App | Ionic |
|--------------|-------|
|
|
|
### sliding `ion-item-sliding` further should create rubberband effect for `ion-item-option`
| Reminder App | Ionic |
|--------------|-------|
|
|
|
### sliding back `ion-item-sliding` on expanded state should show slide-back animation
| Reminder App | Ionic |
|--------------|-------|
|
|
|
### `ion-item-sliding` sliding to expanded state and back again should trigger haptic feedback
### `ion-item-sliding` should expand to safe area and content of `ion-item-option` has to be aligned left
| Reminder App | Ionic |
|--------------|-------|
| |
|
### there should be a delete animation, when fully swiping the expandable `ion-item-option`
| Reminder App | Ionic |
|--------------|-------|
|
| not implemented on ionic |
### Steps to Reproduce
Please follow described steps in table
### Code Reproduction URL
https://stackblitz.com/edit/angular-4mvdgd
### Ionic Info
see stackblitz
### Additional Information
_No response_
贡献指南
调研方向
从 issue 中描述的 ion-item-sliding 和 ion-item-option 行为开始,并检查链接的 StackBlitz 中的 Angular 复现。将当前的 iOS 行为与提供的每个参考进行比较,包括堆叠、展开、动画、安全区域对齐、触觉反馈和删除。只有为这些行为定义并实现了范围,任务才算完成,但 issue 没有指定源文件或测试。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- angular, ios, typescript
- 领域
- frontend, mobile
- Issue 类型
- 功能
- 难度
- 5/5
- 预计耗时
- 一周以上
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 25/100