feat: 支持树状结构

This commit is contained in:
Argo-Lenovo 2022-07-06 15:06:08 +08:00
parent 9343a9522e
commit 35cc0f5174
2 changed files with 7 additions and 1 deletions

View File

@ -10,7 +10,7 @@
ShowToolbar="ShowToolbar" ShowExtendButtons="ShowExtendButtons" ShowAddButton="@AuthorizeButton("add")"
ShowDeleteButton="@AuthorizeButton("del")" ShowEditButton="@AuthorizeButton("edit")"
ShowCardView="true" ShowColumnList="true" ExtendButtonColumnWidth="@ExtendButtonColumnWidth"
CustomerSearchModel="CustomerSearchModel" SelectedRows="SelectedRows"
CustomerSearchModel="CustomerSearchModel" SelectedRows="SelectedRows" ModelEqualityComparer="ModelEqualityComparer!"
ShowEditButtonCallback="ShowEditButtonCallback!" ShowDeleteButtonCallback="ShowDeleteButtonCallback!"
TableToolbarTemplate="TableToolbarTemplate" TableColumns="TableColumns" EditTemplate="EditTemplate!"
CustomerSearchTemplate="CustomerSearchTemplate!" RowButtonTemplate="RowButtonTemplate!">

View File

@ -183,6 +183,12 @@ namespace BootstrapAdmin.Web.Components
[Parameter]
public Func<TItem, bool>? ShowDeleteButtonCallback { get; set; }
/// <summary>
///
/// </summary>
[Parameter]
public Func<TItem, TItem, bool>? ModelEqualityComparer { get; set; }
[NotNull]
private Table<TItem>? Instance { get; set; }