razor支持

This commit is contained in:
小红帽
2024-01-09 00:39:58 +08:00
parent a7c1ac873c
commit 7bc08b401c
28 changed files with 969 additions and 50 deletions

View File

@@ -50,7 +50,7 @@ namespace CPF.Razor
builder.OpenElement(0, GetType().FullName);
RenderAttributes(new AttributesBuilder(builder));
var childContent = GetChildContent();
var childContent = GetChild();
if (childContent != null)
{
builder.AddContent(2, childContent);
@@ -63,7 +63,7 @@ namespace CPF.Razor
{
}
protected virtual RenderFragment GetChildContent() => null;
protected virtual RenderFragment GetChild() => null;
public abstract void ApplyAttribute(ulong attributeEventHandlerId, string attributeName, object attributeValue, string attributeEventUpdatesAttributeName);