-
-
Notifications
You must be signed in to change notification settings - Fork 314
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(TableExportOptions): add TableExportOptions class for Table expo…
…rt (#3246) * feat: 增加 TableExportOptions * feat: ITableExport 导出方法增加 TableExportOptions 类 * chore: bump version 8.4.2-beta02 * test: 增加单元测试
- Loading branch information
Showing
7 changed files
with
84 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
// Copyright (c) Argo Zhang (argo@163.com). All rights reserved. | ||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. | ||
// Website: https://www.blazor.zone or https://argozhang.github.io/ | ||
|
||
using System.ComponentModel; | ||
|
||
namespace BootstrapBlazor.Components; | ||
|
||
/// <summary> | ||
/// Table 导出 Excel 配置类 | ||
/// </summary> | ||
public class TableExportOptions | ||
{ | ||
/// <summary> | ||
/// 获得/设置 是否使用格式化 默认 true 如果设置 <see cref="TableColumn{TItem, TType}.FormatString"/> 或者 <see cref="TableColumn{TItem, TType}.Formatter"/> 后使用格式化值 | ||
/// </summary> | ||
/// <remarks>注意格式化后返回值是 <code>string</code> 会导致原始值类型改变</remarks> | ||
public bool EnableFormat { get; set; } = true; | ||
|
||
/// <summary> | ||
/// 获得/设置 是否使用 Lookup 默认 true | ||
/// </summary> | ||
public bool EnableLookup { get; set; } = true; | ||
|
||
/// <summary> | ||
/// 获得/设置 是否将数组类型值进行合并操作 默认 true | ||
/// </summary> | ||
public bool AutoMergeArray { get; set; } = true; | ||
|
||
/// <summary> | ||
/// 获得/设置 是否使用枚举类型的 <see cref="DescriptionAttribute"/> 标签 默认 true | ||
/// </summary> | ||
public bool UseEnumDescription { get; set; } = true; | ||
|
||
/// <summary> | ||
/// 获得/设置 数组类型合并操作时使用的分隔符 默认使用逗号 | ||
/// </summary> | ||
/// <remarks>注意格式化后返回值是 <code>string</code> 会导致原始值类型改变</remarks> | ||
public string ArrayDelimiter { get; set; } = ","; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters