该特性仅应用于 bool 类型的参数
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 1 year ago