mirror of https://github.com/abpframework/abp
parent
da79718de4
commit
b8b2d2dac6
@ -0,0 +1,26 @@
|
||||
using System;
|
||||
using Volo.Abp.AspNetCore.Components.Web.BasicTheme.Themes.Basic;
|
||||
using Volo.Abp.AspNetCore.Components.Web.Theming.Layout;
|
||||
using Volo.Abp.AspNetCore.Components.Web.Theming.Theming;
|
||||
using Volo.Abp.DependencyInjection;
|
||||
|
||||
namespace Volo.Abp.AspNetCore.Components.Web.BasicTheme;
|
||||
|
||||
[ThemeName(Name)]
|
||||
public class BasicTheme : ITheme, ITransientDependency
|
||||
{
|
||||
public const string Name = "Basic";
|
||||
|
||||
public virtual Type GetLayout(string name, bool fallbackToDefault = true)
|
||||
{
|
||||
switch (name)
|
||||
{
|
||||
case StandardLayouts.Application:
|
||||
case StandardLayouts.Account:
|
||||
case StandardLayouts.Empty:
|
||||
return typeof(MainLayout);
|
||||
default:
|
||||
return fallbackToDefault ? typeof(MainLayout) : typeof(NullLayout);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,3 @@
|
||||
@inherits LayoutComponentBase
|
||||
|
||||
@Body
|
||||
Loading…
Reference in new issue