Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ public class AutoGenerateColumnAttribute : AutoGenerateBaseAttribute, ITableColu
/// <summary>
/// <inheritdoc/>
/// </summary>
public Func<object, Task<string?>>? Formatter { get; set; }
public Func<object?, Task<string?>>? Formatter { get; set; }

/// <summary>
/// 获得/设置 编辑模板
Expand Down
2 changes: 1 addition & 1 deletion src/BootstrapBlazor/Components/Table/ITableColumn.cs
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ public interface ITableColumn : IEditorItem
/// <summary>
/// 获得/设置 列格式化回调委托 <see cref="TableColumnContext{TItem, TValue}"/>
/// </summary>
Func<object, Task<string?>>? Formatter { get; set; }
Func<object?, Task<string?>>? Formatter { get; set; }

/// <summary>
/// 获得/设置 文字对齐方式 默认为 null 使用 Alignment.None
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ class InternalTableColumn(string fieldName, Type fieldType, string? fieldText =
/// </summary>
public string? PlaceHolder { get; set; }

public Func<object, Task<string?>>? Formatter { get; set; }
public Func<object?, Task<string?>>? Formatter { get; set; }

public Alignment? Align { get; set; }

Expand Down
2 changes: 1 addition & 1 deletion src/BootstrapBlazor/Components/Table/TableColumn.cs
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ public class TableColumn<TItem, TType> : BootstrapComponentBase, ITableColumn
/// <inheritdoc/>
/// </summary>
[Parameter]
public Func<object, Task<string?>>? Formatter { get; set; }
public Func<object?, Task<string?>>? Formatter { get; set; }

/// <summary>
/// 获得/设置 显示模板
Expand Down
Loading