diff --git a/src/Volo.Abp.AspNetCore.Mvc.UI.Bootstrap/TagHelpers/Button/AbpButtonTagHelperServiceBase.cs b/src/Volo.Abp.AspNetCore.Mvc.UI.Bootstrap/TagHelpers/Button/AbpButtonTagHelperServiceBase.cs
index b293b36c78..cd5c22be86 100644
--- a/src/Volo.Abp.AspNetCore.Mvc.UI.Bootstrap/TagHelpers/Button/AbpButtonTagHelperServiceBase.cs
+++ b/src/Volo.Abp.AspNetCore.Mvc.UI.Bootstrap/TagHelpers/Button/AbpButtonTagHelperServiceBase.cs
@@ -42,7 +42,18 @@ namespace Volo.Abp.AspNetCore.Mvc.UI.Bootstrap.TagHelpers.Button
return;
}
- output.Content.AppendHtml($" ");
+ output.Content.AppendHtml($" ");
+ }
+
+ protected virtual string GetIconClass(TagHelperContext context, TagHelperOutput output)
+ {
+ switch (TagHelper.IconType)
+ {
+ case FontIconType.FontAwesome:
+ return "fa fa-" + TagHelper.Icon;
+ default:
+ return TagHelper.Icon;
+ }
}
protected virtual void AddText(TagHelperContext context, TagHelperOutput output)