Skip to content

Commit 1b446f6

Browse files
committed
refactor: 重构 TableColumnFilter 组件
1 parent e18ebf4 commit 1b446f6

File tree

2 files changed

+1
-11
lines changed

2 files changed

+1
-11
lines changed

src/BootstrapBlazor/Components/Filters/TableColumnFilter.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ else
8989
break;
9090
default:
9191
<FilterProvider>
92-
<NotSupportFilter></NotSupportFilter>
92+
<NotSupportFilter NotSupportedMessage="@NotSupportedMessage"></NotSupportFilter>
9393
</FilterProvider>
9494
break;
9595
}

src/BootstrapBlazor/Components/Filters/TableColumnFilter.razor.cs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -87,16 +87,6 @@ protected override void OnInitialized()
8787
_fieldKey = Column.GetFieldName();
8888
}
8989

90-
/// <summary>
91-
/// <inheritdoc/>
92-
/// </summary>
93-
protected override void OnParametersSet()
94-
{
95-
base.OnParametersSet();
96-
97-
NotSupportedMessage ??= Localizer[nameof(NotSupportedMessage)];
98-
}
99-
10090
/// <summary>
10191
/// <inheritdoc/>
10292
/// </summary>

0 commit comments

Comments
 (0)