feat: 关闭健康检查工具栏

This commit is contained in:
Argo-Tianyi 2022-01-07 13:05:43 +08:00
parent 97eeba961a
commit 87438838b5
3 changed files with 16 additions and 2 deletions

View File

@ -7,7 +7,8 @@
ShowEmpty="true" EmptyText="暂无数据" EmptyImage="images/empty.svg"
UseInjectDataService="true" DataService="DataService" SortList="SortList"
OnQueryAsync="OnQueryAsync!" OnDeleteAsync="OnDeleteAsync!" OnSaveAsync="OnSaveAsync!"
ShowSkeleton="true" ShowLoading="true" ShowToolbar="true" ShowExtendButtons="ShowExtendButtons" ShowSearch="true"
ShowSkeleton="true" ShowLoading="true" ShowSearch="ShowSearch"
ShowToolbar="ShowToolbar" ShowExtendButtons="ShowExtendButtons"
ShowCardView="true" ShowColumnList="true" ExtendButtonColumnWidth="@ExtendButtonColumnWidth"
CustomerSearchModel="CustomerSearchModel" SelectedRows="SelectedRows"
ShowEditButtonCallback="ShowEditButtonCallback!" ShowDeleteButtonCallback="ShowDeleteButtonCallback!"

View File

@ -76,6 +76,18 @@ namespace BootstrapAdmin.Web.Components
[Parameter]
public bool IsTree { get; set; }
/// <summary>
///
/// </summary>
[Parameter]
public bool ShowToolbar { get; set; } = true;
/// <summary>
///
/// </summary>
[Parameter]
public bool ShowSearch { get; set; } = true;
/// <summary>
///
/// </summary>

View File

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