BooleanCssClass 特性

该特性仅应用于 bool 类型的参数

[Parameter][BooleanCssClass("trueCss", "falseCss")]public bool? Active { get; set; }
<Component />
<div></div>

<Component Active />
<div class="trueCss"></div>

<Component Active="false" />
<div class="falseCss"></div>

Last updated