Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/BootstrapBlazor/Components/Step/Step.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,11 @@ public partial class Step

private int _currentStepIndex;

/// <summary>
/// 获得当前步骤索引(只读)
/// </summary>
public int CurrentStepIndex => _currentStepIndex;

/// <summary>
/// 获得 组件样式字符串
/// </summary>
Expand Down
2 changes: 2 additions & 0 deletions test/UnitTest/Components/StepTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ public void Step_Items()

body = cut.FindAll(".step-body-item");
Assert.Empty(body);

Assert.Equal(0, cut.Instance.CurrentStepIndex);
}

[Fact]
Expand Down