Skip to content

feat: 源生成重写添加SetParametersAsync方法 #6235

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all 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
4 changes: 4 additions & 0 deletions src/BootstrapBlazor/BootstrapBlazor.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@
<None Include="wwwroot\src\**\*.*" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="BlazorSetParametersAsyncGenerator" Version="10.7.97" PrivateAssets="all" OutputItemType="Analyzer"/>
</ItemGroup>

<ItemGroup>
<Using Include="BootstrapBlazor.Components" />
<Using Include="Microsoft.AspNetCore.Components" />
Expand Down
1 change: 1 addition & 0 deletions src/BootstrapBlazor/Components/Checkbox/Checkbox.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ namespace BootstrapBlazor.Components;
/// Checkbox 组件
/// </summary>
[BootstrapModuleAutoLoader(JSObjectReference = true)]
[BlazorSetParametersAsyncGenerator.GenerateSetParametersAsync]
public partial class Checkbox<TValue> : ValidateBase<TValue>
{
/// <summary>
Expand Down
1 change: 1 addition & 0 deletions src/BootstrapBlazor/Components/Radio/Radio.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ namespace BootstrapBlazor.Components;
/// Radio 单选框组件
/// </summary>
[JSModuleNotInherited]
[BlazorSetParametersAsyncGenerator.GenerateSetParametersAsync]
public partial class Radio<TValue> : Checkbox<TValue>
{
/// <summary>
Expand Down
1 change: 1 addition & 0 deletions src/BootstrapBlazor/Components/Table/Table.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ namespace BootstrapBlazor.Components;
/// Table 组件基类
/// </summary>
[CascadingTypeParameter(nameof(TItem))]
[BlazorSetParametersAsyncGenerator.GenerateSetParametersAsync]
public partial class Table<TItem> : ITable, IModelEqualityComparer<TItem> where TItem : class
{
/// <summary>
Expand Down
Loading