|
8 | 8 | namespace BootstrapBlazor.Components; |
9 | 9 |
|
10 | 10 | /// <summary> |
11 | | -/// Table 导出 Excel 配置类 |
| 11 | +/// Configuration class for exporting tables to Excel |
12 | 12 | /// </summary> |
13 | 13 | public class TableExportOptions |
14 | 14 | { |
15 | 15 | /// <summary> |
16 | | - /// 获得/设置 是否使用格式化 默认 true 如果设置 <see cref="TableColumn{TItem, TType}.FormatString"/> 或者 <see cref="TableColumn{TItem, TType}.Formatter"/> 后使用格式化值 |
| 16 | + /// Gets or sets whether to use formatting. Default is true. |
| 17 | + /// If <see cref="TableColumn{TItem, TType}.FormatString"/> or <see cref="TableColumn{TItem, TType}.Formatter"/> is set, the formatted value will be used. |
17 | 18 | /// </summary> |
18 | | - /// <remarks>注意格式化后返回值是 <code>string</code> 会导致原始值类型改变</remarks> |
| 19 | + /// <remarks>Note: After formatting, the returned value is a <code>string</code>, which may change the original value type.</remarks> |
19 | 20 | public bool EnableFormat { get; set; } = true; |
20 | 21 |
|
21 | 22 | /// <summary> |
22 | | - /// 获得/设置 是否使用 Lookup 默认 true |
| 23 | + /// Gets or sets whether to use Lookup. Default is true. |
23 | 24 | /// </summary> |
24 | 25 | public bool EnableLookup { get; set; } = true; |
25 | 26 |
|
26 | 27 | /// <summary> |
27 | | - /// 获得/设置 是否将数组类型值进行合并操作 默认 true |
| 28 | + /// Gets or sets whether to merge array-type values. Default is true. |
28 | 29 | /// </summary> |
29 | 30 | public bool AutoMergeArray { get; set; } = true; |
30 | 31 |
|
31 | 32 | /// <summary> |
32 | | - /// 获得/设置 是否使用枚举类型的 <see cref="DescriptionAttribute"/> 标签 默认 true |
| 33 | + /// Gets or sets whether to use the <see cref="DescriptionAttribute"/> tag for enum types. Default is true. |
33 | 34 | /// </summary> |
34 | 35 | public bool UseEnumDescription { get; set; } = true; |
35 | 36 |
|
36 | 37 | /// <summary> |
37 | | - /// 获得/设置 数组类型合并操作时使用的分隔符 默认使用逗号 |
| 38 | + /// Gets or sets the delimiter used when merging array-type values. Default is a comma. |
38 | 39 | /// </summary> |
39 | | - /// <remarks>注意格式化后返回值是 <code>string</code> 会导致原始值类型改变</remarks> |
| 40 | + /// <remarks>Note: After formatting, the returned value is a <code>string</code>, which may change the original value type.</remarks> |
40 | 41 | public string ArrayDelimiter { get; set; } = ","; |
| 42 | + |
| 43 | + /// <summary> |
| 44 | + /// Gets or sets whether to enable Excel auto-filtering. Default is true. |
| 45 | + /// </summary> |
| 46 | + public bool EnableAutoFilter { get; set; } = true; |
| 47 | + |
| 48 | + /// <summary> |
| 49 | + /// Gets or sets whether to enable Excel auto-width. Default is false. |
| 50 | + /// </summary> |
| 51 | + public bool EnableAutoWidth { get; set; } |
41 | 52 | } |
0 commit comments