Skip to content

Commit 74891b5

Browse files
committed
refactor: 向前一步方法返回当前步骤索引值
1 parent 290b83e commit 74891b5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,10 +118,11 @@ protected override void OnParametersSet()
118118
/// <summary>
119119
/// 移动到上一步方法 返回当前 StepIndex 值
120120
/// </summary>
121-
public void Prev()
121+
public int Prev()
122122
{
123123
_currentStepIndex = Math.Max(0, _currentStepIndex - 1);
124124
StateHasChanged();
125+
return _currentStepIndex;
125126
}
126127

127128
/// <summary>

0 commit comments

Comments
 (0)