From caf77a590f4ebd07b989d16b63d3db5361d1b210 Mon Sep 17 00:00:00 2001 From: Argo Zhang Date: Fri, 31 Oct 2025 13:22:34 +0800 Subject: [PATCH 1/2] =?UTF-8?q?refactor:=20=E7=A7=BB=E9=99=A4=20AutoDrive?= =?UTF-8?q?=20=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../BootstrapBlazor.DriverJs/Components/DriverJs.razor.cs | 3 ++- .../BootstrapBlazor.DriverJs/Components/DriverJs.razor.js | 7 ++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/components/BootstrapBlazor.DriverJs/Components/DriverJs.razor.cs b/src/components/BootstrapBlazor.DriverJs/Components/DriverJs.razor.cs index ec4e9e7b..ae819df6 100644 --- a/src/components/BootstrapBlazor.DriverJs/Components/DriverJs.razor.cs +++ b/src/components/BootstrapBlazor.DriverJs/Components/DriverJs.razor.cs @@ -13,6 +13,8 @@ public partial class DriverJs /// 获得/设置 是否自动开始向导 默认 true /// [Parameter] + [Obsolete("已弃用,删除即可;Deprecated, just delete it")] + [ExcludeFromCodeCoverage] public bool AutoDrive { get; set; } = true; /// @@ -53,7 +55,6 @@ public async Task Start(int? index = 0) await InvokeVoidAsync("start", Id, Config, new { - AutoDrive, Index = index }); } diff --git a/src/components/BootstrapBlazor.DriverJs/Components/DriverJs.razor.js b/src/components/BootstrapBlazor.DriverJs/Components/DriverJs.razor.js index 00f12395..1733b1e9 100644 --- a/src/components/BootstrapBlazor.DriverJs/Components/DriverJs.razor.js +++ b/src/components/BootstrapBlazor.DriverJs/Components/DriverJs.razor.js @@ -17,7 +17,7 @@ export function start(id, options, config) { const d = Data.get(id); if (d) { d.config = config; - const { autoDrive, index } = config; + const { index } = config; const { hookDestroyStarted, hookDestroyed } = options; if (hookDestroyStarted) { delete options.hookDestroyStarted; @@ -36,10 +36,7 @@ export function start(id, options, config) { } const driverObj = driver(options); d.driver = driverObj; - - if (autoDrive) { - driverObj.drive(index); - } + driverObj.drive(index); } } From 712b875966c52cbba6a5bac1c896504a0afd488c Mon Sep 17 00:00:00 2001 From: Argo Zhang Date: Fri, 31 Oct 2025 13:22:48 +0800 Subject: [PATCH 2/2] chore: bump version 9.0.5 --- .../BootstrapBlazor.DriverJs.csproj | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/src/components/BootstrapBlazor.DriverJs/BootstrapBlazor.DriverJs.csproj b/src/components/BootstrapBlazor.DriverJs/BootstrapBlazor.DriverJs.csproj index 88483492..8515548b 100644 --- a/src/components/BootstrapBlazor.DriverJs/BootstrapBlazor.DriverJs.csproj +++ b/src/components/BootstrapBlazor.DriverJs/BootstrapBlazor.DriverJs.csproj @@ -1,7 +1,14 @@ + + 9.0.5 + + + + 10.0.0-rc.2.1.0 + + - 9.0.3 BootstrapBlazor.Components @@ -15,10 +22,14 @@ - + + + + +