angular / angular/components

feat(stepper): Make `CdkStepper` generic to support extended CdkStep

オープン
#22,590 コメント 3 件 リアクション 4 件 担当者 0 名 GitHub で見る
area: cdk/stepper feature needs: discussion P4
主要言語
TypeScript
スター
25k
フォーク
6.8k
平均マージ
1日 8時間
マージ済み PR(30日)
91

説明

#### Feature Description

Currently, when I want to use `CdkStepper` with a custom class for a step (extension of a class `CdkStep`, e.g. `MyStep extends CdkStep`), I am not able to as `CdkStepper` is not generic and is fixed to `CdkStep` class for a step. I would like to make `CdkStepper` generic, so I can use `CdkStepper`.

#### Use Case

Let's say I have a class`OnboardingStepComponent extends CdkStep` which has the property `specialLabel`. I want to use the CdkStepper with this specialized step component.

Let me know if this sounds reasonable, if so, I can work on this.

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

まず Angular components repository 内の CdkStepper と CdkStep のエントリポイントを見つけ、step type が現在どのように固定されているかを確認します。専用の MyStep または OnboardingStepComponent で期待する動作を確認し、その後、CdkStepper が specialLabel を持つ拡張された step をサポートすることを示すテストカバレッジを追加します。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
angular, typescript
領域
frontend
issue の種類
機能追加
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。