fix(TableExport): throw exception when exeport excel (#4157)

* feat: 增加 FieldCount 实现

* chore: bump version 8.2.1

* doc: 更新 TableExport 包

* doc: 更正错别字
This commit is contained in:
Argo Zhang 2024-08-26 18:58:54 +08:00 committed by GitHub
parent 5945b0fb3c
commit 107ed92633
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 8 additions and 3 deletions

View File

@ -61,7 +61,7 @@
<PackageReference Include="BootstrapBlazor.Splitting" Version="8.0.0" />
<PackageReference Include="BootstrapBlazor.SvgEditor" Version="8.1.0" />
<PackageReference Include="BootstrapBlazor.SummerNote" Version="8.0.3" />
<PackageReference Include="BootstrapBlazor.TableExport" Version="8.2.0" />
<PackageReference Include="BootstrapBlazor.TableExport" Version="8.2.1" />
<PackageReference Include="BootstrapBlazor.TagHelper" Version="8.0.1" />
<PackageReference Include="BootstrapBlazor.Topology" Version="8.0.9" />
<PackageReference Include="BootstrapBlazor.VideoPlayer" Version="8.0.7-beta1" />

View File

@ -1451,7 +1451,7 @@
"LayoutsAppIntro": "实际项目中的例子",
"LayoutsPageTitle": "整页面级别的组件",
"LayoutsPageIntro": "通过 <code>IsPage</code> 对整页面布局",
"LayoutsPageTips1": "通过设置 <code>IsPage</code> 属性设置 <code>Layout</code> 组件是否掌控页面级别的布局方式,设置为 <code>true</code> 后,本组件采用整屏布局",
"LayoutsPageTips1": "通过设置 <code>IsPage</code> 属性设置 <code>Layout</code> 组件是否掌控页面级别的布局方式,设置为 <code>true</code> 后,本组件采用整屏布局",
"LayoutsPageHrefTitle": "整页面组件生成器",
"Layouts_Header_Description": "页头组件模板",
"Layouts_Side_Description": "侧边栏组件模板",

View File

@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk.Razor">
<PropertyGroup>
<Version>8.2.0</Version>
<Version>8.2.1</Version>
</PropertyGroup>
<PropertyGroup>

View File

@ -54,6 +54,11 @@ class ExportDataReader<TModel>(IEnumerable<TModel> items, IEnumerable<ITableColu
}
}
/// <summary>
/// <inheritdoc/>
/// </summary>
public override int FieldCount { get; } = cols.Count();
/// <summary>
/// <inheritdoc/>
/// </summary>