From ba8320708a3a190b2b7efef79cba7fb8ea617182 Mon Sep 17 00:00:00 2001 From: Argo Zhang Date: Sun, 19 Jan 2020 11:50:15 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E5=A2=9E=E5=8A=A0=20PageContent=20?= =?UTF-8?q?=E7=BB=84=E4=BB=B6=E7=9A=84=E6=8F=8F=E8=BF=B0=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/admin/Bootstrap.Admin/Components/PageContent.cs | 7 ++++--- .../Bootstrap.Admin/Components/PageContentAttributes.cs | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/admin/Bootstrap.Admin/Components/PageContent.cs b/src/admin/Bootstrap.Admin/Components/PageContent.cs index dee33af1..2b576bdf 100644 --- a/src/admin/Bootstrap.Admin/Components/PageContent.cs +++ b/src/admin/Bootstrap.Admin/Components/PageContent.cs @@ -6,18 +6,18 @@ using System.Linq; namespace Bootstrap.Admin.Components { /// - /// + /// PageContent 网页组件 /// public class PageContent : ComponentBase { /// - /// + /// 获得/设置 组件名字 /// [Parameter] public string Name { get; set; } = ""; /// - /// + /// 渲染组件方法 /// /// protected override void BuildRenderTree(RenderTreeBuilder builder) @@ -25,6 +25,7 @@ namespace Bootstrap.Admin.Components var name = Name.SpanSplit("/").LastOrDefault(); if (!string.IsNullOrEmpty(name)) { + // TODO: 稍后重构使用标签动态加载组件 var t = Type.GetType($"Bootstrap.Admin.Pages.Admin.{name}"); if (t != null) { diff --git a/src/admin/Bootstrap.Admin/Components/PageContentAttributes.cs b/src/admin/Bootstrap.Admin/Components/PageContentAttributes.cs index 4074d1db..86865314 100644 --- a/src/admin/Bootstrap.Admin/Components/PageContentAttributes.cs +++ b/src/admin/Bootstrap.Admin/Components/PageContentAttributes.cs @@ -1,7 +1,7 @@ namespace Bootstrap.Admin.Components { /// - /// + /// PageContentAttributes 实体类 /// public class PageContentAttributes {