Skip to content

Commit b086afd

Browse files
committed
refactor: 使用基类本地化服务
1 parent 7a707a7 commit b086afd

File tree

2 files changed

+0
-10
lines changed

2 files changed

+0
-10
lines changed

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

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,13 @@
33
// See the LICENSE file in the project root for more information.
44
// Maintainer: Argo Zhang([email protected]) Website: https://www.blazor.zone
55

6-
using Microsoft.Extensions.Localization;
7-
86
namespace BootstrapBlazor.Components;
97

108
/// <summary>
119
/// NotSupportFilter component
1210
/// </summary>
1311
public partial class NotSupportFilter
1412
{
15-
[Inject]
16-
[NotNull]
17-
private IStringLocalizer<TableColumnFilter>? Localizer { get; set; }
18-
1913
/// <summary>
2014
/// 获得/设置 不支持过滤类型提示信息 默认 null 读取资源文件内容
2115
/// </summary>

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,6 @@ public partial class TableColumnFilter : IFilter
5050
[NotNull]
5151
public ITable? Table { get; set; }
5252

53-
[Inject]
54-
[NotNull]
55-
private IStringLocalizer<TableColumnFilter>? Localizer { get; set; }
56-
5753
/// <summary>
5854
/// 获得 过滤小图标样式
5955
/// </summary>

0 commit comments

Comments
 (0)