Known是基于C#和Blazor开发的前后端分离快速开发框架,开箱即用,跨平台,一处代码,多处运行。
如果对您有帮助,点击⭐Star⭐关注 ,感谢支持开源!
builder.Component<Breadcrumb>().Set(c => c.Items, new List<MenuItem>
{
new MenuItem("Test1", "测试1", "fa fa-user"),
new MenuItem("Test2", "测试2"),
new MenuItem("Test3", "测试3") {Action=()=>UI.Alert("Test")},
new MenuItem("Test4", "测试4")
}).Build();
private Captcha captcha;
builder.Field<Captcha>("Captcha", true)
.Set(f => f.Icon, "fa fa-check")
.Set(f => f.Placeholder, "验证码")
.Build(value => captcha = value);