!3558 fix(#I630V4): update IsHideFooterWhenNoData logic

* chore: bump version 7.0.7-beta02
* fix: 修复 IsHideFooterWhenNoData 参数逻辑错误
This commit is contained in:
Argo 2022-11-24 14:39:41 +00:00
parent 7e0de043e6
commit 95936c98d4
3 changed files with 5 additions and 3 deletions

View File

@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk.Razor">
<PropertyGroup>
<Version>7.0.7-beta01</Version>
<Version>7.0.7-beta02</Version>
</PropertyGroup>
<ItemGroup Condition="'$(TargetFramework)' == 'net5.0'">

View File

@ -244,7 +244,7 @@
}
</DynamicElement>
}
@if (ShowFooter && !IsHideFooterWhenNoData)
@if (IsShowFooter)
{
<div class="table-row table-footer">
<CascadingValue Value="true" Name="IsMobileMode" IsFixed="true">
@ -363,7 +363,7 @@
}
}
</tbody>
@if (ShowFooter && !IsHideFooterWhenNoData)
@if (IsShowFooter)
{
<tfoot>
<CascadingValue Value="false" Name="IsMobileMode" IsFixed="true">

View File

@ -123,6 +123,8 @@ public partial class Table<TItem> : ITable where TItem : class, new()
private static string? GetColspan(int colspan) => colspan > 1 ? colspan.ToString() : null;
private bool IsShowFooter => ShowFooter && (Rows.Any() || !IsHideFooterWhenNoData);
/// <summary>
/// 获得/设置 列拷贝 Tooltip 文字
/// </summary>