Skip to content

Commit 8f078a9

Browse files
committed
feat(Step): add 'CurrentStepIndex' to obtain the real-time value of _currentStepIndex
1 parent 342ff51 commit 8f078a9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/BootstrapBlazor/Components/Step/Step.razor.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,11 @@ public partial class Step
5353

5454
private int _currentStepIndex;
5555

56+
/// <summary>
57+
/// 获得当前步骤索引(只读)
58+
/// </summary>
59+
public int CurrentStepIndex => _currentStepIndex;
60+
5661
/// <summary>
5762
/// 获得 组件样式字符串
5863
/// </summary>

0 commit comments

Comments
 (0)