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 @@ -29,7 +29,7 @@
<DemoBlock Title="@Localizer["ProgressDisplayValueTitle"]"
Introduction="@Localizer["ProgressDisplayValueIntro"]"
Name="DisplayValue">
<BootstrapBlazor.Components.Progress Value="25" IsShowValue="true"></BootstrapBlazor.Components.Progress>
<BootstrapBlazor.Components.Progress Value="25.5" IsShowValue="true"></BootstrapBlazor.Components.Progress>
</DemoBlock>

<DemoBlock Title="@Localizer["ProgressHeightTitle"]"
Expand Down
2 changes: 1 addition & 1 deletion src/BootstrapBlazor/BootstrapBlazor.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk.Razor">

<PropertyGroup>
<Version>9.8.0</Version>
<Version>9.8.1-beta01</Version>
</PropertyGroup>

<ItemGroup>
Expand Down
4 changes: 3 additions & 1 deletion src/BootstrapBlazor/Components/Progress/Progress.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
// See the LICENSE file in the project root for more information.
// Maintainer: Argo Zhang([email protected]) Website: https://www.blazor.zone

using System.Globalization;

namespace BootstrapBlazor.Components;

/// <summary>
Expand Down Expand Up @@ -85,7 +87,7 @@ public partial class Progress
/// 获得 Style 集合
/// </summary>
private string? StyleName => CssBuilder.Default()
.AddClass($"width: {InternalValue}%;")
.AddClass($"width: {InternalValue.ToString(CultureInfo.InvariantCulture)}%;")
.Build();

/// <summary>
Expand Down
Loading