From 107ed9263337a42b56d05009dd698a503da15f7f Mon Sep 17 00:00:00 2001 From: Argo Zhang Date: Mon, 26 Aug 2024 18:58:54 +0800 Subject: [PATCH] fix(TableExport): throw exception when exeport excel (#4157) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat: 增加 FieldCount 实现 * chore: bump version 8.2.1 * doc: 更新 TableExport 包 * doc: 更正错别字 --- src/BootstrapBlazor.Server/BootstrapBlazor.Server.csproj | 2 +- src/BootstrapBlazor.Server/Locales/zh-CN.json | 2 +- .../BootstrapBlazor.TableExport.csproj | 2 +- .../BootstrapBlazor.TableExport/Services/ExportDataReader.cs | 5 +++++ 4 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/BootstrapBlazor.Server/BootstrapBlazor.Server.csproj b/src/BootstrapBlazor.Server/BootstrapBlazor.Server.csproj index 344844be4..bc09cf8ee 100644 --- a/src/BootstrapBlazor.Server/BootstrapBlazor.Server.csproj +++ b/src/BootstrapBlazor.Server/BootstrapBlazor.Server.csproj @@ -61,7 +61,7 @@ - + diff --git a/src/BootstrapBlazor.Server/Locales/zh-CN.json b/src/BootstrapBlazor.Server/Locales/zh-CN.json index 459bb7815..318efd202 100644 --- a/src/BootstrapBlazor.Server/Locales/zh-CN.json +++ b/src/BootstrapBlazor.Server/Locales/zh-CN.json @@ -1451,7 +1451,7 @@ "LayoutsAppIntro": "实际项目中的例子", "LayoutsPageTitle": "整页面级别的组件", "LayoutsPageIntro": "通过 IsPage 对整页面布局", - "LayoutsPageTips1": "通过设置 IsPage 属性设置 Layout 组件是否掌控正页面级别的布局方式,设置为 true 后,本组件采用整屏布局", + "LayoutsPageTips1": "通过设置 IsPage 属性设置 Layout 组件是否掌控整页面级别的布局方式,设置为 true 后,本组件采用整屏布局", "LayoutsPageHrefTitle": "整页面组件生成器", "Layouts_Header_Description": "页头组件模板", "Layouts_Side_Description": "侧边栏组件模板", diff --git a/src/Extensions/Components/BootstrapBlazor.TableExport/BootstrapBlazor.TableExport.csproj b/src/Extensions/Components/BootstrapBlazor.TableExport/BootstrapBlazor.TableExport.csproj index 0c28ce340..bde23d0f2 100644 --- a/src/Extensions/Components/BootstrapBlazor.TableExport/BootstrapBlazor.TableExport.csproj +++ b/src/Extensions/Components/BootstrapBlazor.TableExport/BootstrapBlazor.TableExport.csproj @@ -1,7 +1,7 @@ - 8.2.0 + 8.2.1 diff --git a/src/Extensions/Components/BootstrapBlazor.TableExport/Services/ExportDataReader.cs b/src/Extensions/Components/BootstrapBlazor.TableExport/Services/ExportDataReader.cs index a0e59c909..b10c9ecfc 100644 --- a/src/Extensions/Components/BootstrapBlazor.TableExport/Services/ExportDataReader.cs +++ b/src/Extensions/Components/BootstrapBlazor.TableExport/Services/ExportDataReader.cs @@ -54,6 +54,11 @@ class ExportDataReader(IEnumerable items, IEnumerable + /// + /// + public override int FieldCount { get; } = cols.Count(); + /// /// ///