Skip to content

Commit 34b8118

Browse files
committed
2 parents 6916347 + e12f5cd commit 34b8118

File tree

10 files changed

+20
-11
lines changed

10 files changed

+20
-11
lines changed

src/BootstrapBlazor.Server/Extensions/ServiceCollectionExtensions.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,12 @@ public static IServiceCollection AddBootstrapBlazorServerService(this IServiceCo
3434
// 增加 SignalR 服务数据传输大小限制配置
3535
services.Configure<HubOptions>(option => option.MaximumReceiveMessageSize = null);
3636

37+
#if !DEBUG
3738
// 增加后台任务服务
3839
services.AddTaskServices();
3940
services.AddHostedService<ClearTempFilesService>();
4041
services.AddHostedService<MockOnlineContributor>();
42+
#endif
4143
services.AddHostedService<MockReceiveSocketServerService>();
4244
services.AddHostedService<MockSendReceiveSocketServerService>();
4345
services.AddHostedService<MockCustomProtocolSocketServerService>();

src/BootstrapBlazor/BootstrapBlazor.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk.Razor">
22

33
<PropertyGroup>
4-
<Version>9.9.1-beta01</Version>
4+
<Version>9.9.1-beta02</Version>
55
</PropertyGroup>
66

77
<ItemGroup>

src/BootstrapBlazor/Components/Table/Table.razor

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,12 @@
281281
var cellClass = "";
282282
string? value = null;
283283
RenderFragment? valueTemplate = null;
284-
<div class="table-cell">
284+
var colClass = "table-cell";
285+
if (!string.IsNullOrEmpty(col.CssClass))
286+
{
287+
colClass = $"table-cell {col.CssClass}";
288+
}
289+
<div class="@colClass">
285290
<label>
286291
@col.GetDisplayName()
287292
</label>

src/BootstrapBlazor/wwwroot/core/bootstrap/css/bootstrap.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/BootstrapBlazor/wwwroot/core/bootstrap/css/bootstrap.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/BootstrapBlazor/wwwroot/core/bootstrap/css/bootstrap.rtl.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/BootstrapBlazor/wwwroot/core/bootstrap/css/bootstrap.rtl.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/BootstrapBlazor/wwwroot/core/bootstrap/js/bootstrap.bundle.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/BootstrapBlazor/wwwroot/core/bootstrap/js/bootstrap.bundle.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test/UnitTest/Components/TableTest.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -792,11 +792,13 @@ public void ShowCardView_Ok()
792792
builder.OpenComponent<TableColumn<Foo, string>>(0);
793793
builder.AddAttribute(1, "Field", "Name");
794794
builder.AddAttribute(2, "FieldExpression", Utility.GenerateValueExpression(foo, "Name", typeof(string)));
795+
builder.AddAttribute(3, "CssClass", "test-css");
795796
builder.CloseComponent();
796797
});
797798
});
798799
});
799800
cut.Contains("Test_CardView");
801+
cut.Contains("test-css");
800802
}
801803

802804
[Fact]

0 commit comments

Comments
 (0)