Skip to content

Commit 7044c95

Browse files
committed
wip: 临时提交
1 parent de03bba commit 7044c95

File tree

3 files changed

+40
-1
lines changed

3 files changed

+40
-1
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
@namespace BootstrapBlazor.Components
2+
@inherits FilterBase
3+
4+
<div></div>
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
// Licensed to the .NET Foundation under one or more agreements.
2+
// The .NET Foundation licenses this file to you under the Apache 2.0 License
3+
// See the LICENSE file in the project root for more information.
4+
// Maintainer: Argo Zhang([email protected]) Website: https://www.blazor.zone
5+
6+
namespace BootstrapBlazor.Components;
7+
8+
/// <summary>
9+
/// NotSupportFilter component
10+
/// </summary>
11+
public partial class NotSupportFilter
12+
{
13+
private string? FilterRowClassString => CssBuilder.Default("filter-row")
14+
.AddClass("active", TableColumnFilter.HasFilter())
15+
.Build();
16+
17+
/// <summary>
18+
/// <inheritdoc/>
19+
/// </summary>
20+
/// <returns></returns>
21+
public override FilterKeyValueAction GetFilterConditions()
22+
{
23+
return new();
24+
}
25+
26+
/// <summary>
27+
/// <inheritdoc/>
28+
/// </summary>
29+
public override async Task SetFilterConditionsAsync(FilterKeyValueAction filter)
30+
{
31+
await base.SetFilterConditionsAsync(filter);
32+
}
33+
}

src/BootstrapBlazor/Components/Filters/TableColumnFilter.razor

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,9 @@ else
8888
</FilterProvider>
8989
break;
9090
default:
91-
<div>@NotSupportedMessage</div>
91+
<FilterProvider>
92+
<NotSupportFilter></NotSupportFilter>
93+
</FilterProvider>
9294
break;
9395
}
9496
}

0 commit comments

Comments
 (0)