Tag helpers minor refactor

pull/301/head
yekalkan 7 years ago
parent dd2c383cb4
commit e38299a6d9

@ -141,8 +141,7 @@ namespace Volo.Abp.AspNetCore.Mvc.UI.Bootstrap.TagHelpers.Form
if (baseType == null) { return null; }
var value = Convert.ChangeType(modelExplorer.Model, baseType);
return value != null ? value.ToString() : "";
return Convert.ChangeType(modelExplorer.Model, baseType)?.ToString() ?? "";
}
else
{

@ -5,10 +5,5 @@
public string HtmlContent { get; set; }
public int Order { get; set; }
public FormGroupItem()
{
}
}
}

@ -10,6 +10,5 @@ namespace Volo.Abp.AspNetCore.Mvc.UI.Bootstrap.TagHelpers.Grid
output.TagName = "div";
output.Attributes.AddClass("container");
}
}
}

@ -33,6 +33,5 @@ namespace Volo.Abp.AspNetCore.Mvc.UI.Bootstrap.TagHelpers.Grid
output.Attributes.AddClass("justify-content-" + TagHelper.HAlign.ToString().ToLowerInvariant());
}
}
}
Loading…
Cancel
Save