feat: 健康检查移除多选与显示 Empty 空数据

This commit is contained in:
Argo-Tianyi 2022-01-09 20:45:46 +08:00
parent b19a9cb955
commit fae54caea1
3 changed files with 16 additions and 4 deletions

View File

@ -1,10 +1,10 @@
@typeparam TItem
<Table TItem="TItem" IsBordered="true" IsStriped="true" IsMultipleSelect="true" @ref="Instance"
<Table TItem="TItem" IsBordered="true" IsStriped="true" IsMultipleSelect="IsMultipleSelect" @ref="Instance"
IsPagination="IsPagination" PageItemsSource="PageItemsSource" IsFixedHeader="IsFixedHeader"
IsTree="IsTree" OnTreeExpand="OnTreeExpand!" TreeIcon="fa-chevron-circle-right"
ShowDefaultButtons="ShowDefaultButtons" ShowAdvancedSearch="ShowAdvancedSearch"
ShowEmpty="true" EmptyText="暂无数据" EmptyImage="images/empty.svg" SortList="SortList"
ShowEmpty="ShowEmpty" EmptyText="暂无数据" EmptyImage="images/empty.svg" SortList="SortList"
OnQueryAsync="OnQueryAsync!" OnDeleteAsync="OnDeleteAsync!" OnSaveAsync="OnSaveAsync!"
ShowSkeleton="true" ShowLoading="ShowLoading" ShowSearch="ShowSearch"
ShowToolbar="ShowToolbar" ShowExtendButtons="ShowExtendButtons"

View File

@ -64,6 +64,12 @@ namespace BootstrapAdmin.Web.Components
[Parameter]
public bool IsPagination { get; set; }
/// <summary>
///
/// </summary>
[Parameter]
public bool IsMultipleSelect { get; set; } = true;
/// <summary>
///
/// </summary>
@ -82,6 +88,12 @@ namespace BootstrapAdmin.Web.Components
[Parameter]
public bool ShowToolbar { get; set; } = true;
/// <summary>
///
/// </summary>
[Parameter]
public bool ShowEmpty { get; set; } = true;
/// <summary>
///
/// </summary>

View File

@ -11,8 +11,8 @@
</div>
</CardHeader>
<CardBody>
<AdminTable TItem="HealthCheckReportItem" IsFixedHeader="false" @ref="HealthTable"
ShowToolbar="false" ShowSearch="false" ShowLoading="true" OnQueryAsync="OnQueryAsync">
<AdminTable TItem="HealthCheckReportItem" IsFixedHeader="false" @ref="HealthTable" IsMultipleSelect="false"
ShowToolbar="false" ShowEmpty="false" ShowSearch="false" ShowLoading="true" OnQueryAsync="OnQueryAsync">
<TableColumns>
<TableColumn @bind-Field="@context.Name" Lookup="@GetNameLookup()" Text="检查项"></TableColumn>
<TableColumn @bind-Field="@context.Description" Text="描述"></TableColumn>