mirror of https://github.com/abpframework/abp.git
6 changed files with 66 additions and 2 deletions
@ -0,0 +1,14 @@ |
|||||
|
using System.Collections.Generic; |
||||
|
|
||||
|
namespace Volo.Abp.AspNetCore.Mvc.UI.Layout |
||||
|
{ |
||||
|
public class BreadCrumb |
||||
|
{ |
||||
|
public List<BreadCrumbItem> Items { get; } |
||||
|
|
||||
|
public BreadCrumb() |
||||
|
{ |
||||
|
Items = new List<BreadCrumbItem>(); |
||||
|
} |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,11 @@ |
|||||
|
namespace Volo.Abp.AspNetCore.Mvc.UI.Layout |
||||
|
{ |
||||
|
public class BreadCrumbItem |
||||
|
{ |
||||
|
public string Text { get; set; } |
||||
|
|
||||
|
public string Icon { get; set; } |
||||
|
|
||||
|
public string Url { get; set; } |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,14 @@ |
|||||
|
namespace Volo.Abp.AspNetCore.Mvc.UI.Layout |
||||
|
{ |
||||
|
public class ContentLayout |
||||
|
{ |
||||
|
public string Title { get; set; } |
||||
|
|
||||
|
public BreadCrumb BreadCrumb { get; } |
||||
|
|
||||
|
public ContentLayout() |
||||
|
{ |
||||
|
BreadCrumb = new BreadCrumb(); |
||||
|
} |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,7 @@ |
|||||
|
namespace Volo.Abp.AspNetCore.Mvc.UI.Layout |
||||
|
{ |
||||
|
public interface IPageLayout |
||||
|
{ |
||||
|
ContentLayout Content { get; } |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,14 @@ |
|||||
|
using Volo.Abp.DependencyInjection; |
||||
|
|
||||
|
namespace Volo.Abp.AspNetCore.Mvc.UI.Layout |
||||
|
{ |
||||
|
public class PageLayout : IPageLayout, IScopedDependency |
||||
|
{ |
||||
|
public ContentLayout Content { get; } |
||||
|
|
||||
|
public PageLayout() |
||||
|
{ |
||||
|
Content = new ContentLayout(); |
||||
|
} |
||||
|
} |
||||
|
} |
||||
Loading…
Reference in new issue