angular / angular/components

Add `completed` event for stepper / steps

未关闭
#12,908 18 条评论 6 个 reaction 已指派 0 人 在 GitHub 查看
area: cdk/stepper area: material/stepper feature good first issue help wanted P4
主要语言
TypeScript
星标
25k
派生
6.8k
平均合并
1 天 8 小时
30 天内合并 PR
91

描述

#### Bug, feature request, or proposal:
Proposal

#### What is the expected behavior?
Optionally allow the consumer define if it wants to auto-advance an step when it completes (by using [completed] step property)

#### What is the current behavior?
Nothing happens as soon the step is marked as completed

#### What is the use-case or motivation for changing an existing behavior?
Use Observable based state such as NgRx stores, and in a more functional way allow set the stepper navigation based on state, now I have to subscribe to store and call navigation via an stepper instance in order to handle steps advance, too imperatively and also results in a awful timing issues because when stepper.next() is called and [completed] property update is on its way nothing happens.

#### Is there anything else we should know?
I'm willing to implement such feature. No breaking changes would be introduced.

贡献指南

打开贡献指南

调研方向

从 Angular Material stepper/steps 组件的入口点开始,检查现有的已完成步骤属性和导航是如何处理的。明确可选的自动前进契约、它与状态更新的交互方式,以及所需的回归测试覆盖范围;完成的标准是该行为为 opt-in,且不会破坏现有导航。

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

评估

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

把新 issue 发到你的邮箱

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