diff --git a/src/BootstrapBlazor.WebConsole/Pages/Timelines.razor b/src/BootstrapBlazor.WebConsole/Pages/Timelines.razor
index 8f0faf271..f66b13913 100644
--- a/src/BootstrapBlazor.WebConsole/Pages/Timelines.razor
+++ b/src/BootstrapBlazor.WebConsole/Pages/Timelines.razor
@@ -16,3 +16,5 @@
+
+
diff --git a/src/BootstrapBlazor.WebConsole/Pages/Timelines.razor.cs b/src/BootstrapBlazor.WebConsole/Pages/Timelines.razor.cs
index 289c739c9..79c6901c8 100644
--- a/src/BootstrapBlazor.WebConsole/Pages/Timelines.razor.cs
+++ b/src/BootstrapBlazor.WebConsole/Pages/Timelines.razor.cs
@@ -1,4 +1,5 @@
using BootstrapBlazor.Components;
+using BootstrapBlazor.WebConsole.Common;
using System;
using System.Collections.Generic;
using System.Linq;
@@ -6,7 +7,10 @@ using System.Threading.Tasks;
namespace BootstrapBlazor.WebConsole.Pages
{
- public partial class Timelines
+ ///
+ ///
+ ///
+ public sealed partial class Timelines
{
private bool isRevers { get; set; }
@@ -42,7 +46,7 @@ namespace BootstrapBlazor.WebConsole.Pages
///
///
///
- protected readonly List timelineitems = new List
+ protected readonly IEnumerable timelineitems = new TimelineItem[]
{
new TimelineItem{ Content="创建时间",DateTime=DateTime.Now.ToString("yyyy-MM-dd")},
new TimelineItem{ Content="通过审核",DateTime=DateTime.Now.AddDays(1).ToString("yyyy-MM-dd")},
@@ -52,11 +56,32 @@ namespace BootstrapBlazor.WebConsole.Pages
///
///
///
- protected readonly List timelineitemsColor = new List
+ protected readonly IEnumerable timelineitemsColor = new TimelineItem[]
{
new TimelineItem{ Color=Color.Warning, Content="创建时间",DateTime=DateTime.Now.ToString("yyyy-MM-dd")},
new TimelineItem{ Color=Color.Info, Content="通过审核",DateTime=DateTime.Now.AddDays(1).ToString("yyyy-MM-dd")},
new TimelineItem{ Color=Color.Success, Content="活动按期开始",DateTime=DateTime.Now.AddDays(2).ToString("yyyy-MM-dd")}
};
+
+ ///
+ /// 获得属性方法
+ ///
+ ///
+ private IEnumerable GetAttributes() => new AttributeItem[]
+ {
+ // TODO: 移动到数据库中
+ new AttributeItem() {
+ Name = "Reverse",
+ Description = "是否倒序显示",
+ Type = "boolean",
+ },
+ new AttributeItem() {
+ Name = "Items",
+ Description = "数据集合",
+ Type = "IEnumerable",
+ ValueList = "—",
+ DefaultValue = " — "
+ }
+ };
}
}