Skip to content

Commit

Permalink
style: 移除不使用的样式
Browse files Browse the repository at this point in the history
  • Loading branch information
ArgoZhang committed Nov 23, 2024
1 parent 1b0dd24 commit 5522239
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion src/BootstrapBlazor/Components/Checkbox/Checkbox.razor
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ else
RenderFragment RenderCheckbox =>
@<div @attributes="AdditionalAttributes" class="@ClassString">
<input type="checkbox" id="@Id" class="@InputClassString" disabled="@Disabled" checked="@CheckedString"
@onclick="OnToggleClick" @onclick:stopPropagation="StopPropagation" @onclick:preventDefault="OnBeforeStateChanged != null" />
@onclick="OnToggleClick" @onclick:stopPropagation="StopPropagation" @onclick:preventDefault="false" />
@if (IsShowAfterLabel)
{
@RenderLabel
Expand Down
2 changes: 0 additions & 2 deletions src/BootstrapBlazor/Components/Checkbox/Checkbox.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ public partial class Checkbox<TValue> : ValidateBase<TValue>
/// </summary>
private string? ClassString => CssBuilder.Default("form-check")
.AddClass("is-label", IsShowAfterLabel)
.AddClass("is-checked", State == CheckboxState.Checked && !IsBoolean)
.AddClass("is-indeterminate", State == CheckboxState.Indeterminate)
.AddClass($"form-check-{Color.ToDescriptionString()}", Color != Color.None)
.AddClass($"form-check-{Size.ToDescriptionString()}", Size != Size.None)
.AddClass("disabled", IsDisabled)
Expand Down

0 comments on commit 5522239

Please sign in to comment.