Browse Source

Fix permission modal problem

pull/11798/head
liangshiwei 4 years ago
parent
commit
693c98e8a6
  1. 4
      framework/src/Volo.Abp.AspNetCore.Mvc.UI.Bootstrap/TagHelpers/Form/AbpInputTagHelperService.cs

4
framework/src/Volo.Abp.AspNetCore.Mvc.UI.Bootstrap/TagHelpers/Form/AbpInputTagHelperService.cs

@ -57,6 +57,8 @@ public class AbpInputTagHelperService : AbpTagHelperService<AbpInputTagHelper>
output.Attributes.AddClass(isCheckBox ? "mb-2" : "mb-3");
if (isCheckBox)
{
output.Attributes.AddClass("custom-checkbox");
output.Attributes.AddClass("custom-control");
output.Attributes.AddClass("form-check");
}
output.Content.AppendHtml(innerHtml);
@ -104,7 +106,7 @@ public class AbpInputTagHelperService : AbpTagHelperService<AbpInputTagHelper>
protected virtual string SurroundInnerHtmlAndGet(TagHelperContext context, TagHelperOutput output, string innerHtml, bool isCheckbox)
{
return "<div class=\"" + (isCheckbox ? "mb-2 form-check" : "mb-3") + "\">" +
return "<div class=\"" + (isCheckbox ? "custom-checkbox custom-control mb-2 form-check" : "mb-3") + "\">" +
Environment.NewLine + innerHtml + Environment.NewLine +
"</div>";
}

Loading…
Cancel
Save