!3574 feat(#I63T8D): remove IJSRuntime parameter from ITableExcelExport interface

* chore: bump version 7.0.9
* feat: 更新 ITableExport 接口移除 IJSRuntime 参数
This commit is contained in:
Argo 2022-11-30 00:19:07 +00:00
parent c937655f81
commit 92fcb35a2e
4 changed files with 4 additions and 4 deletions

View File

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

View File

@ -811,7 +811,7 @@ public partial class Table<TItem>
{
// 如果未提供 OnExportAsync 回调委托使用注入服务来尝试解析
// TODO: 这里将本页数据作为参数传递给导出服务,服务本身可以利用自身优势获取全部所需数据,如果获取全部数据呢?
ret = await ExcelExport.ExportAsync(Rows, Columns, JSRuntime);
ret = await ExcelExport.ExportAsync(Rows, Columns);
}
option = new ToastOption

View File

@ -13,7 +13,7 @@ internal class DefaultExcelExport : ITableExcelExport
///
/// </summary>
/// <returns></returns>
public Task<bool> ExportAsync<TItem>(IEnumerable<TItem> items, IEnumerable<ITableColumn> cols, IJSRuntime jsRuntime) where TItem : class
public Task<bool> ExportAsync<TItem>(IEnumerable<TItem> items, IEnumerable<ITableColumn> cols) where TItem : class
{
return Task.FromResult(false);
}

View File

@ -12,5 +12,5 @@ public interface ITableExcelExport
/// <summary>
/// 导出 Excel 方法
/// </summary>
Task<bool> ExportAsync<TItem>(IEnumerable<TItem> items, IEnumerable<ITableColumn> cols, IJSRuntime jsRuntime) where TItem : class;
Task<bool> ExportAsync<TItem>(IEnumerable<TItem> items, IEnumerable<ITableColumn> cols) where TItem : class;
}