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 @@ - + + + + + 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); } }