快速开始
仅需 2 步即可创建自动化组件
安装
Install-Package ComponentBuilderusing ComponentBuilder;
//...
builder.Services.AddComponentBuilder();
//...开始
.razor 文件的例子
.razor 文件的例子@inherits BlazorComponentBase
<span @attributes="AdditionalAttributes"> <!--@attributes 是必须的-->
@ChildContent
</span>
@code{
[Parameter] public RenderFragment? ChildContent { get; set; }
[Parameter][CssClass("active")] public bool Active { get; set; }
}使用 Element.cs 类
Element.cs 类Last updated