mirror of
https://gitee.com/LongbowEnterprise/BootstrapBlazor.git
synced 2024-12-01 19:50:31 +08:00
fix(Table): ItemChangedType doesn't pass correct value to EditTemplate on Drawer mode (#4750)
* feat(Table): add cascade value ItemChagnedType for edit template * chore: bump version 9.0.2-beta04
This commit is contained in:
parent
81e8297038
commit
341ffda446
@ -1,7 +1,7 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk.Razor">
|
||||
|
||||
<PropertyGroup>
|
||||
<Version>9.0.2-beta03</Version>
|
||||
<Version>9.0.2-beta04</Version>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
@ -4,24 +4,26 @@
|
||||
@attribute [BootstrapModuleAutoLoader("Dialog/EditDialog.razor.js", AutoInvokeInit = false, AutoInvokeDispose = false)]
|
||||
|
||||
<ValidateForm Model="@Model" OnValidSubmit="@OnValidSubmitAsync" DisableAutoSubmitFormByEnter="@DisableAutoSubmitFormByEnter">
|
||||
@if (BodyTemplate != null)
|
||||
{
|
||||
<div class="form-body">
|
||||
@BodyTemplate(Model)
|
||||
</div>
|
||||
<div class="form-footer">
|
||||
@RenderFooter
|
||||
</div>
|
||||
}
|
||||
else
|
||||
{
|
||||
<EditorForm TModel="TModel" Items="Items" ItemChangedType="ItemChangedType" ItemsPerRow="ItemsPerRow" RowType="RowType" LabelAlign="LabelAlign" ShowLabel="ShowLabel" ShowUnsetGroupItemsOnTop="ShowUnsetGroupItemsOnTop">
|
||||
<Buttons>
|
||||
<CascadingValue Value="ItemChangedType" IsFixed="true">
|
||||
@if (BodyTemplate != null)
|
||||
{
|
||||
<div class="form-body">
|
||||
@BodyTemplate(Model)
|
||||
</div>
|
||||
<div class="form-footer">
|
||||
@RenderFooter
|
||||
</Buttons>
|
||||
</EditorForm>
|
||||
}
|
||||
<div class="form-loader fade" id="@Id">
|
||||
<Spinner Color="Color.Primary" />
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
else
|
||||
{
|
||||
<EditorForm TModel="TModel" Items="Items" ItemChangedType="ItemChangedType" ItemsPerRow="ItemsPerRow" RowType="RowType" LabelAlign="LabelAlign" ShowLabel="ShowLabel" ShowUnsetGroupItemsOnTop="ShowUnsetGroupItemsOnTop">
|
||||
<Buttons>
|
||||
@RenderFooter
|
||||
</Buttons>
|
||||
</EditorForm>
|
||||
}
|
||||
<div class="form-loader fade" id="@Id">
|
||||
<Spinner Color="Color.Primary" />
|
||||
</div>
|
||||
</CascadingValue>
|
||||
</ValidateForm>
|
||||
|
Loading…
Reference in New Issue
Block a user