Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 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
2 changes: 1 addition & 1 deletion src/BootstrapBlazor/BootstrapBlazor.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk.Razor">

<PropertyGroup>
<Version>10.3.1-beta03</Version>
<Version>10.3.1-beta04</Version>
</PropertyGroup>

<ItemGroup>
Expand Down
15 changes: 15 additions & 0 deletions src/BootstrapBlazor/Components/Step/Step.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,21 @@ public async Task<int> Next()
return _currentStepIndex;
}

/// <summary>
/// <para lang="zh">设置当前步骤索引 <see cref="StepIndex"/> 值</para>
/// <para lang="en">Set current step index <see cref="StepIndex"/> value</para>
/// </summary>
/// <param name="index"></param>
public async Task SetStepIndex(int index)
{
_currentStepIndex = Math.Max(0, Math.Min(Items.Count, index));
if (IsFinished && OnFinishedCallback != null)
{
await OnFinishedCallback();
}
StateHasChanged();
}
Comment thread
ArgoZhang marked this conversation as resolved.
Comment thread
ArgoZhang marked this conversation as resolved.
Comment thread
ArgoZhang marked this conversation as resolved.

/// <summary>
/// <para lang="zh">重置步骤方法</para>
/// <para lang="en">Reset Step Method</para>
Expand Down
4 changes: 2 additions & 2 deletions src/BootstrapBlazor/Components/TreeView/TreeView.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -196,13 +196,13 @@ public partial class TreeView<TItem> : IModelEqualityComparer<TItem>
public Func<TreeViewItem<TItem>, Task<IEnumerable<TreeViewItem<TItem>>>>? OnExpandNodeAsync { get; set; }

/// <summary>
/// <inheritdoc/>
/// <inheritdoc cref="IModelEqualityComparer{TItem}.CustomKeyAttribute"/>
/// </summary>
[Parameter]
public Type CustomKeyAttribute { get; set; } = typeof(KeyAttribute);

/// <summary>
/// <inheritdoc/>
/// <inheritdoc cref="IModelEqualityComparer{TItem}.ModelEqualityComparer"/>
Comment thread
ArgoZhang marked this conversation as resolved.
/// </summary>
[Parameter]
public Func<TItem, TItem, bool>? ModelEqualityComparer { get; set; }
Expand Down
Loading