mirror of
https://gitee.com/LongbowEnterprise/BootstrapBlazor.git
synced 2024-12-05 05:29:47 +08:00
!3574 feat(#I63T8D): remove IJSRuntime parameter from ITableExcelExport interface
* chore: bump version 7.0.9 * feat: 更新 ITableExport 接口移除 IJSRuntime 参数
This commit is contained in:
parent
c937655f81
commit
92fcb35a2e
@ -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'">
|
||||
|
@ -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
|
||||
|
@ -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);
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user