From 3034502350995e35173727121dcc84e1c90ce92d Mon Sep 17 00:00:00 2001 From: capdiem Date: Tue, 9 Jan 2024 13:21:00 +0800 Subject: [PATCH] update --- .../BlazorComponent/Abstracts/Builder/BemCssBuilder.cs | 10 +--------- src/Component/BlazorComponent/BlazorComponent.csproj | 2 +- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/src/Component/BlazorComponent/Abstracts/Builder/BemCssBuilder.cs b/src/Component/BlazorComponent/Abstracts/Builder/BemCssBuilder.cs index a95d2a19c..50fb47c48 100644 --- a/src/Component/BlazorComponent/Abstracts/Builder/BemCssBuilder.cs +++ b/src/Component/BlazorComponent/Abstracts/Builder/BemCssBuilder.cs @@ -21,15 +21,7 @@ public CssBuilder Modifiers(Func bemBuilder) protected override List GetClassNames() { var classNames = base.GetClassNames(); - - if (_builder != null) - { - // TODO: insert or add? - // classNames.Insert(0, _builder.Invoke(_blockOrElement).Build()); - var className = _builder.Invoke(_blockOrElement).Build(); - classNames.Add(className); - } - + classNames.Add(_builder == null ? _blockOrElement.Name : _builder.Invoke(_blockOrElement).Build()); return classNames; } } diff --git a/src/Component/BlazorComponent/BlazorComponent.csproj b/src/Component/BlazorComponent/BlazorComponent.csproj index 2eaa0b144..f03387567 100644 --- a/src/Component/BlazorComponent/BlazorComponent.csproj +++ b/src/Component/BlazorComponent/BlazorComponent.csproj @@ -20,7 +20,7 @@ - +