Skip to content

Commit 6dbff8f

Browse files
authored
feat(IZipArchiveService): update ArchiveAsync method (#7639)
* feat: 增加 Key 参数 * refactor: 使用回调方法 GetKeyByITem 获得行 Key 值 * chore: bump version 9.6.5 * feat: 增加 PdfOptions 配置项 * chore: bump version 9.6.6 * refactor: 调整 IconTemplate 优先级别 * feat: 增加 ActionButtonTemplate 模板 * refactor: 增加条件 * chore: bump version 9.6.7 * feat(IpAddress): support paste function (#7276) * feat(IpAddress): support paste function * refactor: 代码格式化 # Conflicts: # src/BootstrapBlazor/Components/IpAddress/IpAddress.razor.js * chore: bump version 9.6.8 * feat(IpAddress): trigger ValueChanged on paste event (#7280) * refactor: 增加 JSInvoke 能力 * refactor: 更改样式 * refactor: 增加客户端更改 IP 回调方法 * test: 更新单元测试 * chore: bump version 10.1.3 # Conflicts: # src/BootstrapBlazor/BootstrapBlazor.csproj # src/BootstrapBlazor/Components/IpAddress/IpAddress.razor.scss # test/UnitTest/Components/IpAddressTest.cs * chore: bump version 9.6.9 * chore: 支持 Interop 参数 * chore: bump version 9.6.10 * feat: 增加 OnBeforeTreeItemClick 方法 * chore: bump version 9.6.11 * refactor: 兼容嵌套问题 * chore: bump version 9.6.12 * feat: 支持端口 * chore: bump version 9.6-13-beta01 * chore: bump version 9.6.13 * feat(ZipArchiveService): add ArchiveDirectoryAsync method # Conflicts: # src/BootstrapBlazor/Services/DefaultZipArchiveService.cs # src/BootstrapBlazor/Services/IZipArchiveService.cs * test: 增加单元测试 # Conflicts: # test/UnitTest/Services/ZipArchiveServiceTest.cs * chore: bump version 9.6.14 * refactor: 增加 Key 参数 * refactor: 取消冗余代码 * revert: 撤销更改 * refactor: 移动 SetKey 位置 * refactor: 调整序号 * test: 增加单元测试 * refactor: 更新代码 * refactor: 重构代码 * refactor: 重构代码 * refactor: 重构代码 * refactor: 重构代码 * refactor: 更新代码
1 parent f1d3146 commit 6dbff8f

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

src/BootstrapBlazor/Services/DefaultZipArchiveService.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ namespace BootstrapBlazor.Components;
1111
class DefaultZipArchiveService : IZipArchiveService
1212
{
1313
/// <summary>
14-
/// <inheritdoc/>
14+
/// <inheritdoc cref="IZipArchiveService.ArchiveAsync(IEnumerable{string}, ArchiveOptions?)"/>
1515
/// </summary>
1616
public Task<Stream> ArchiveAsync(IEnumerable<string> files, ArchiveOptions? options = null) => ArchiveAsync(files.Select(f => new ArchiveEntry()
1717
{
@@ -20,7 +20,7 @@ class DefaultZipArchiveService : IZipArchiveService
2020
}), options);
2121

2222
/// <summary>
23-
/// <inheritdoc/>
23+
/// <inheritdoc cref="IZipArchiveService.ArchiveAsync(string, IEnumerable{string}, ArchiveOptions?)"/>
2424
/// </summary>
2525
public Task ArchiveAsync(string archiveFile, IEnumerable<string> files, ArchiveOptions? options = null) => ArchiveAsync(archiveFile, files.Select(f => new ArchiveEntry()
2626
{
@@ -29,7 +29,7 @@ class DefaultZipArchiveService : IZipArchiveService
2929
}), options);
3030

3131
/// <summary>
32-
/// <inheritdoc/>
32+
/// <inheritdoc cref="IZipArchiveService.ArchiveAsync(IEnumerable{ArchiveEntry}, ArchiveOptions?)"/>
3333
/// </summary>
3434
public async Task<Stream> ArchiveAsync(IEnumerable<ArchiveEntry> entries, ArchiveOptions? options = null)
3535
{
@@ -42,7 +42,7 @@ public async Task<Stream> ArchiveAsync(IEnumerable<ArchiveEntry> entries, Archiv
4242
}
4343

4444
/// <summary>
45-
/// <inheritdoc/>
45+
/// <inheritdoc cref="IZipArchiveService.ArchiveAsync(string, IEnumerable{ArchiveEntry}, ArchiveOptions?)"/>
4646
/// </summary>
4747
public async Task ArchiveAsync(string archiveFile, IEnumerable<ArchiveEntry> entries, ArchiveOptions? options = null)
4848
{
@@ -70,7 +70,7 @@ private static async Task ArchiveFilesAsync(Stream stream, IEnumerable<ArchiveEn
7070
}
7171
else if (Directory.Exists(f.SourceFileName))
7272
{
73-
var entryName = f.EntryName;
73+
var entryName = f.EntryName.Replace('\\', '/');
7474

7575
if (!entryName.EndsWith('/'))
7676
{

0 commit comments

Comments
 (0)