Skip to content

Commit eda37d2

Browse files
committed
refactor: 格式化增加文化信息
1 parent 6aa2bd6 commit eda37d2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/BootstrapBlazor/Components/Progress/Progress.razor.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
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 System.Globalization;
7+
68
namespace BootstrapBlazor.Components;
79

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

9193
/// <summary>

0 commit comments

Comments
 (0)