!2531 fix(#I4XVKU): Light component support custom class html attribute

* fix: Light 组件支持自定义 class 属性
This commit is contained in:
Argo 2022-03-15 05:02:22 +00:00
parent 04070c1ac5
commit ba43ff1802

View File

@ -17,6 +17,7 @@ public partial class Light
protected string? ClassString => CssBuilder.Default("light")
.AddClass("flash", IsFlash)
.AddClass($"light-{Color.ToDescriptionString()}", Color != Color.None)
.AddClassFromAttributes(AdditionalAttributes)
.Build();
/// <summary>