From 290b83eaaad949c8836efde8160fa7efd6a40d87 Mon Sep 17 00:00:00 2001 From: Argo Zhang Date: Sun, 16 Feb 2025 18:40:42 +0800 Subject: [PATCH 1/3] =?UTF-8?q?doc:=20=E6=9B=B4=E6=96=B0=E6=B3=A8=E9=87=8A?= =?UTF-8?q?=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/BootstrapBlazor/Components/Step/Step.razor.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/BootstrapBlazor/Components/Step/Step.razor.cs b/src/BootstrapBlazor/Components/Step/Step.razor.cs index 9c7c4c34d91..d40676045e4 100644 --- a/src/BootstrapBlazor/Components/Step/Step.razor.cs +++ b/src/BootstrapBlazor/Components/Step/Step.razor.cs @@ -116,7 +116,7 @@ protected override void OnParametersSet() } /// - /// 上一步 + /// 移动到上一步方法 返回当前 StepIndex 值 /// public void Prev() { @@ -125,7 +125,7 @@ public void Prev() } /// - /// 下一步 + /// 移动到下一步方法 返回当前 StepIndex 值 /// public async Task Next() { @@ -138,7 +138,7 @@ public async Task Next() } /// - /// 下一步 + /// 重置步骤方法 /// public void Reset() { From 74891b5e885b9a454c11b7ef51d559034a7a832b Mon Sep 17 00:00:00 2001 From: Argo Zhang Date: Sun, 16 Feb 2025 18:41:33 +0800 Subject: [PATCH 2/3] =?UTF-8?q?refactor:=20=E5=90=91=E5=89=8D=E4=B8=80?= =?UTF-8?q?=E6=AD=A5=E6=96=B9=E6=B3=95=E8=BF=94=E5=9B=9E=E5=BD=93=E5=89=8D?= =?UTF-8?q?=E6=AD=A5=E9=AA=A4=E7=B4=A2=E5=BC=95=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/BootstrapBlazor/Components/Step/Step.razor.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/BootstrapBlazor/Components/Step/Step.razor.cs b/src/BootstrapBlazor/Components/Step/Step.razor.cs index d40676045e4..f9001487825 100644 --- a/src/BootstrapBlazor/Components/Step/Step.razor.cs +++ b/src/BootstrapBlazor/Components/Step/Step.razor.cs @@ -118,10 +118,11 @@ protected override void OnParametersSet() /// /// 移动到上一步方法 返回当前 StepIndex 值 /// - public void Prev() + public int Prev() { _currentStepIndex = Math.Max(0, _currentStepIndex - 1); StateHasChanged(); + return _currentStepIndex; } /// From f7fe3ff88d7cdad548978a2fc6194c7a2b36d0c9 Mon Sep 17 00:00:00 2001 From: Argo Zhang Date: Sun, 16 Feb 2025 18:41:50 +0800 Subject: [PATCH 3/3] =?UTF-8?q?feat:=20=E5=90=91=E5=90=8E=E4=B8=80?= =?UTF-8?q?=E6=AD=A5=E6=96=B9=E6=B3=95=E8=BF=94=E5=9B=9E=E5=BD=93=E5=89=8D?= =?UTF-8?q?=E6=AD=A5=E9=AA=A4=E7=B4=A2=E5=BC=95=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/BootstrapBlazor/Components/Step/Step.razor.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/BootstrapBlazor/Components/Step/Step.razor.cs b/src/BootstrapBlazor/Components/Step/Step.razor.cs index f9001487825..3b8ffa00455 100644 --- a/src/BootstrapBlazor/Components/Step/Step.razor.cs +++ b/src/BootstrapBlazor/Components/Step/Step.razor.cs @@ -128,7 +128,7 @@ public int Prev() /// /// 移动到下一步方法 返回当前 StepIndex 值 /// - public async Task Next() + public async Task Next() { _currentStepIndex = Math.Min(Items.Count, _currentStepIndex + 1); if (IsFinished && OnFinishedCallback != null) @@ -136,6 +136,7 @@ public async Task Next() await OnFinishedCallback(); } StateHasChanged(); + return _currentStepIndex; } ///