Browse Source

Merge pull request #1476 from colinin/fix-mini-excel-export

fix: fixed MiniExcel Import settings
pull/1479/head
yx lin 6 months ago
committed by GitHub
parent
commit
9b77c840cf
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      aspnet-core/framework/exporter/LINGYUN.Abp.Exporter.MiniExcel/LINGYUN/Abp/Exporter/MiniExcelImporterProvider.cs
  2. 2
      aspnet-core/framework/exporter/LINGYUN.Abp.Exporter.MiniSoftware/LINGYUN/Abp/Exporter/MiniSoftware/MiniExcelImporterProvider.cs

2
aspnet-core/framework/exporter/LINGYUN.Abp.Exporter.MiniExcel/LINGYUN/Abp/Exporter/MiniExcelImporterProvider.cs

@ -27,7 +27,7 @@ public class MiniExcelImporterProvider : IImporterProvider, ITransientDependency
{
var xmlConfig = new OpenXmlConfiguration();
if (_options.ExportSettingMapping.TryGetValue(typeof(T), out var exportSetting))
if (_options.ImportSettingMapping.TryGetValue(typeof(T), out var exportSetting))
{
exportSetting?.Invoke(xmlConfig);
}

2
aspnet-core/framework/exporter/LINGYUN.Abp.Exporter.MiniSoftware/LINGYUN/Abp/Exporter/MiniSoftware/MiniExcelImporterProvider.cs

@ -31,7 +31,7 @@ public class MiniExcelImporterProvider :
{
var xmlConfig = new OpenXmlConfiguration();
if (_options.ExportSettingMapping.TryGetValue(typeof(T), out var exportSetting))
if (_options.ImportSettingMapping.TryGetValue(typeof(T), out var exportSetting))
{
exportSetting?.Invoke(xmlConfig);
}

Loading…
Cancel
Save