feat: 健康检查移除多选与显示 Empty 空数据
This commit is contained in:
parent
b19a9cb955
commit
fae54caea1
|
@ -1,10 +1,10 @@
|
||||||
@typeparam TItem
|
@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"
|
IsPagination="IsPagination" PageItemsSource="PageItemsSource" IsFixedHeader="IsFixedHeader"
|
||||||
IsTree="IsTree" OnTreeExpand="OnTreeExpand!" TreeIcon="fa-chevron-circle-right"
|
IsTree="IsTree" OnTreeExpand="OnTreeExpand!" TreeIcon="fa-chevron-circle-right"
|
||||||
ShowDefaultButtons="ShowDefaultButtons" ShowAdvancedSearch="ShowAdvancedSearch"
|
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!"
|
OnQueryAsync="OnQueryAsync!" OnDeleteAsync="OnDeleteAsync!" OnSaveAsync="OnSaveAsync!"
|
||||||
ShowSkeleton="true" ShowLoading="ShowLoading" ShowSearch="ShowSearch"
|
ShowSkeleton="true" ShowLoading="ShowLoading" ShowSearch="ShowSearch"
|
||||||
ShowToolbar="ShowToolbar" ShowExtendButtons="ShowExtendButtons"
|
ShowToolbar="ShowToolbar" ShowExtendButtons="ShowExtendButtons"
|
||||||
|
|
|
@ -64,6 +64,12 @@ namespace BootstrapAdmin.Web.Components
|
||||||
[Parameter]
|
[Parameter]
|
||||||
public bool IsPagination { get; set; }
|
public bool IsPagination { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
[Parameter]
|
||||||
|
public bool IsMultipleSelect { get; set; } = true;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
///
|
///
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -82,6 +88,12 @@ namespace BootstrapAdmin.Web.Components
|
||||||
[Parameter]
|
[Parameter]
|
||||||
public bool ShowToolbar { get; set; } = true;
|
public bool ShowToolbar { get; set; } = true;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
[Parameter]
|
||||||
|
public bool ShowEmpty { get; set; } = true;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
///
|
///
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
|
@ -11,8 +11,8 @@
|
||||||
</div>
|
</div>
|
||||||
</CardHeader>
|
</CardHeader>
|
||||||
<CardBody>
|
<CardBody>
|
||||||
<AdminTable TItem="HealthCheckReportItem" IsFixedHeader="false" @ref="HealthTable"
|
<AdminTable TItem="HealthCheckReportItem" IsFixedHeader="false" @ref="HealthTable" IsMultipleSelect="false"
|
||||||
ShowToolbar="false" ShowSearch="false" ShowLoading="true" OnQueryAsync="OnQueryAsync">
|
ShowToolbar="false" ShowEmpty="false" ShowSearch="false" ShowLoading="true" OnQueryAsync="OnQueryAsync">
|
||||||
<TableColumns>
|
<TableColumns>
|
||||||
<TableColumn @bind-Field="@context.Name" Lookup="@GetNameLookup()" Text="检查项"></TableColumn>
|
<TableColumn @bind-Field="@context.Name" Lookup="@GetNameLookup()" Text="检查项"></TableColumn>
|
||||||
<TableColumn @bind-Field="@context.Description" Text="描述"></TableColumn>
|
<TableColumn @bind-Field="@context.Description" Text="描述"></TableColumn>
|
||||||
|
|
Loading…
Reference in New Issue