From acdf57a0f86e7f883a8d0a98882de2e74e4a22eb Mon Sep 17 00:00:00 2001 From: Argo Zhang Date: Mon, 20 Jan 2020 21:12:07 +0800 Subject: [PATCH 1/7] =?UTF-8?q?feat:=20Blazor=20=E6=A8=A1=E5=BC=8F?= =?UTF-8?q?=E4=B8=8B=E5=A2=9E=E5=8A=A0=E5=9B=BA=E5=AE=9A=E8=A1=A8=E5=A4=B4?= =?UTF-8?q?=E5=B1=9E=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Components/EditPageBase.cs | 6 + .../Bootstrap.Admin/Components/TableBase.cs | 18 +++ .../Bootstrap.Admin/Pages/Admin/Dicts.razor | 2 +- .../Pages/Components/QueryPageBase.cs | 18 ++- .../Bootstrap.Admin/Shared/EditPage.razor | 2 +- src/admin/Bootstrap.Admin/Shared/Table.razor | 133 ++++++++++++++---- .../Bootstrap.Admin/wwwroot/css/blazor.css | 10 ++ 7 files changed, 155 insertions(+), 34 deletions(-) diff --git a/src/admin/Bootstrap.Admin/Components/EditPageBase.cs b/src/admin/Bootstrap.Admin/Components/EditPageBase.cs index 185ec4c9..4f8c561b 100644 --- a/src/admin/Bootstrap.Admin/Components/EditPageBase.cs +++ b/src/admin/Bootstrap.Admin/Components/EditPageBase.cs @@ -78,6 +78,12 @@ namespace Bootstrap.Admin.Components [Parameter] public RenderFragment? EditTemplate { get; set; } + /// + /// 获得/设置 是否固定表头 默认为 false 不固定表头 + /// + [Parameter] + public bool FixedHeader { get; set; } + /// /// 获得/设置 Table 实例 /// diff --git a/src/admin/Bootstrap.Admin/Components/TableBase.cs b/src/admin/Bootstrap.Admin/Components/TableBase.cs index d5dfaa09..1012cb72 100644 --- a/src/admin/Bootstrap.Admin/Components/TableBase.cs +++ b/src/admin/Bootstrap.Admin/Components/TableBase.cs @@ -60,6 +60,24 @@ namespace Bootstrap.Admin.Components [Parameter] public RenderFragment? TableFooter { get; set; } + /// + /// 获得/设置 是否固定表头 默认为 false 不固定表头 + /// + [Parameter] + public bool FixedHeader { get; set; } + + /// + /// 获得/设置 是否自适应高度 默认为 false 不自适应高度 + /// + [Parameter] + public bool AutoHeight { get; set; } + + /// + /// 获得/设置 是否显示搜索框 默认为 false 不显示搜索框 + /// + [Parameter] + public bool ShowSearch { get; set; } + /// /// 获得/设置 数据集合 /// diff --git a/src/admin/Bootstrap.Admin/Pages/Admin/Dicts.razor b/src/admin/Bootstrap.Admin/Pages/Admin/Dicts.razor index dd8c55c3..94567e6c 100644 --- a/src/admin/Bootstrap.Admin/Pages/Admin/Dicts.razor +++ b/src/admin/Bootstrap.Admin/Pages/Admin/Dicts.razor @@ -1,6 +1,6 @@ @inherits DictsBase - +