mirror of
https://gitee.com/csharpui/CPF.git
synced 2026-09-04 17:16:27 +08:00
razor支持
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user