@namespace AntDesign @inherits AntDomComponentBase @code { [Parameter] public string PrefixCls { get; set; } = "ant-empty-img-simple"; protected void SetClass() { this.ClassMapper.Clear() .Add(PrefixCls); } protected override void OnInitialized() { this.SetClass(); base.OnInitialized(); } }