feat: 任务管理设置为不固定表头
This commit is contained in:
parent
4b707e9bc4
commit
b18bc89175
|
@ -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!"
|
||||
|
|
|
@ -50,6 +50,12 @@
|
|||
[Parameter]
|
||||
public bool IsPagination { get; set; }
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
[Parameter]
|
||||
public bool IsFixedHeader { get; set; } = true;
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue