Skip to content

Commit 5ac38d9

Browse files
committed
refactor: 增加 cls 样式
1 parent 5dd08b2 commit 5ac38d9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/BootstrapBlazor/Components/Select/MultiSelect.razor.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ public partial class MultiSelect<TValue>
1616
{
1717
private List<SelectedItem> SelectedItems { get; } = [];
1818

19-
private static string? ClassString => CssBuilder.Default("select dropdown multi-select")
19+
private string? ClassString => CssBuilder.Default("select dropdown multi-select")
20+
.AddClass("cls", IsClearable)
2021
.Build();
2122

2223
private string? EditSubmitKeyString => EditSubmitKey == EditSubmitKey.Space ? EditSubmitKey.ToDescriptionString() : null;

0 commit comments

Comments
 (0)