feat: 任务管理设置为不固定表头

This commit is contained in:
Argo-Lenovo 2022-01-03 10:54:31 +08:00
parent 4b707e9bc4
commit b18bc89175
3 changed files with 8 additions and 2 deletions

View File

@ -1,7 +1,7 @@
@typeparam TItem
<Table TItem="TItem" IsBordered="true" IsStriped="true" IsMultipleSelect="true"
IsPagination="IsPagination" PageItemsSource="PageItemsSource" IsFixedHeader="true"
IsPagination="IsPagination" PageItemsSource="PageItemsSource" IsFixedHeader="IsFixedHeader"
IsTree="IsTree" OnTreeExpand="OnTreeExpand!" TreeIcon="fa-chevron-circle-right"
ShowDefaultButtons="ShowDefaultButtons" ShowAdvancedSearch="ShowAdvancedSearch"
UseInjectDataService="true" DataService="DataService" OnQueryAsync="OnQueryAsync!"

View File

@ -50,6 +50,12 @@
[Parameter]
public bool IsPagination { get; set; }
/// <summary>
///
/// </summary>
[Parameter]
public bool IsFixedHeader { get; set; } = true;
/// <summary>
///
/// </summary>

View File

@ -29,7 +29,7 @@
</CardBody>
</Card>
<AdminTable TItem="TasksModel" ExtendButtonColumnWidth="270" OnQueryAsync="OnQueryAsync">
<AdminTable TItem="TasksModel" ExtendButtonColumnWidth="270" OnQueryAsync="OnQueryAsync" IsFixedHeader="false">
<ColumnsTemplete>
<TableColumn @bind-Field="@context.Name" Sortable="true" Filterable="true" Searchable="true" Width="80"></TableColumn>
<TableColumn @bind-Field="@context.CreateTime" Sortable="true" Filterable="true" Searchable="true" FormatString="yyyy-MM-dd HH:mm:ss"></TableColumn>