删除无用的FAjaxFunTagHelper

This commit is contained in:
falcon 2020-05-08 20:03:18 +08:00
parent fff8fc8adb
commit d5c5dd3bb8

View File

@ -1,21 +0,0 @@
using Microsoft.AspNetCore.Razor.TagHelpers;
namespace FAuth.Extensions.TagHelpers
{
[HtmlTargetElement("a",Attributes = "fajaxfun")]
[HtmlTargetElement("form",Attributes = "fajaxfun")]
public class FAjaxFunTagHelper:TagHelper
{
[HtmlAttributeName("fajaxfun")]
public string Fun { get; set; }
public override void Process(TagHelperContext context,TagHelperOutput output) {
//data-ajax="true" data-ajax-update="main" data-ajax-mode="replace"
output.Attributes.SetAttribute("data-ajax","true");
output.Attributes.SetAttribute("data-ajax-update",this.Fun);
output.Attributes.SetAttribute("data-ajax-mode","replace");
//base.Process(context,output);
}
}
}