重写并自定义组件的属性
Last updated 1 year ago
protected override void BuildAttributes(IDictionary<string, object> attributes) { if(HasClicked) { attributes["onclick"] = HtmlHelper.Event.Create(this, () => { /*...*/ }); } }