diff --git a/src/blazor/admin/BootstrapAdmin.Web/Components/AdminTable.razor b/src/blazor/admin/BootstrapAdmin.Web/Components/AdminTable.razor index 5fd908f3..df0ab906 100644 --- a/src/blazor/admin/BootstrapAdmin.Web/Components/AdminTable.razor +++ b/src/blazor/admin/BootstrapAdmin.Web/Components/AdminTable.razor @@ -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!" diff --git a/src/blazor/admin/BootstrapAdmin.Web/Components/AdminTable.razor.cs b/src/blazor/admin/BootstrapAdmin.Web/Components/AdminTable.razor.cs index b6ae0866..598e218a 100644 --- a/src/blazor/admin/BootstrapAdmin.Web/Components/AdminTable.razor.cs +++ b/src/blazor/admin/BootstrapAdmin.Web/Components/AdminTable.razor.cs @@ -76,6 +76,18 @@ namespace BootstrapAdmin.Web.Components [Parameter] public bool IsTree { get; set; } + /// + /// + /// + [Parameter] + public bool ShowToolbar { get; set; } = true; + + /// + /// + /// + [Parameter] + public bool ShowSearch { get; set; } = true; + /// /// /// diff --git a/src/blazor/admin/BootstrapAdmin.Web/Pages/Admin/Healths.razor b/src/blazor/admin/BootstrapAdmin.Web/Pages/Admin/Healths.razor index 2f89cda1..0a104500 100644 --- a/src/blazor/admin/BootstrapAdmin.Web/Pages/Admin/Healths.razor +++ b/src/blazor/admin/BootstrapAdmin.Web/Pages/Admin/Healths.razor @@ -11,7 +11,8 @@ - +