diff --git a/modules/AntDesignTheme/Lsw.Abp.AspnetCore.Components.Web.AntDesignTheme/Components/LayoutHook.razor b/modules/AntDesignTheme/Lsw.Abp.AspnetCore.Components.Web.AntDesignTheme/Components/LayoutHooks/LayoutHook.razor similarity index 100% rename from modules/AntDesignTheme/Lsw.Abp.AspnetCore.Components.Web.AntDesignTheme/Components/LayoutHook.razor rename to modules/AntDesignTheme/Lsw.Abp.AspnetCore.Components.Web.AntDesignTheme/Components/LayoutHooks/LayoutHook.razor diff --git a/modules/AntDesignTheme/Lsw.Abp.AspnetCore.Components.Web.AntDesignTheme/Components/LayoutHook.razor.cs b/modules/AntDesignTheme/Lsw.Abp.AspnetCore.Components.Web.AntDesignTheme/Components/LayoutHooks/LayoutHook.razor.cs similarity index 98% rename from modules/AntDesignTheme/Lsw.Abp.AspnetCore.Components.Web.AntDesignTheme/Components/LayoutHook.razor.cs rename to modules/AntDesignTheme/Lsw.Abp.AspnetCore.Components.Web.AntDesignTheme/Components/LayoutHooks/LayoutHook.razor.cs index 9789ede..4f272ad 100644 --- a/modules/AntDesignTheme/Lsw.Abp.AspnetCore.Components.Web.AntDesignTheme/Components/LayoutHook.razor.cs +++ b/modules/AntDesignTheme/Lsw.Abp.AspnetCore.Components.Web.AntDesignTheme/Components/LayoutHooks/LayoutHook.razor.cs @@ -5,7 +5,7 @@ using Microsoft.AspNetCore.Components; using Microsoft.Extensions.Options; using Volo.Abp.Ui.LayoutHooks; -namespace Lsw.Abp.AspnetCore.Components.Web.AntDesignTheme.Components; +namespace Lsw.Abp.AspnetCore.Components.Web.AntDesignTheme.Components.LayoutHooks; public partial class LayoutHook : ComponentBase { diff --git a/modules/AntDesignTheme/Lsw.Abp.AspnetCore.Components.Web.AntDesignTheme/Layout/StandardLayouts.cs b/modules/AntDesignTheme/Lsw.Abp.AspnetCore.Components.Web.AntDesignTheme/Layout/StandardLayouts.cs new file mode 100644 index 0000000..d8e015b --- /dev/null +++ b/modules/AntDesignTheme/Lsw.Abp.AspnetCore.Components.Web.AntDesignTheme/Layout/StandardLayouts.cs @@ -0,0 +1,9 @@ +namespace Lsw.Abp.AspnetCore.Components.Web.AntDesignTheme.Layout; + +public static class StandardLayouts +{ + public const string Application = "Application"; + public const string Account = "Account"; + public const string Public = "Public"; + public const string Empty = "Empty"; +} \ No newline at end of file diff --git a/modules/AntDesignTheme/Lsw.Abp.AspnetCore.Components.Web.AntDesignTheme/Themes/AntDesignTheme/DefaultLayout.razor b/modules/AntDesignTheme/Lsw.Abp.AspnetCore.Components.Web.AntDesignTheme/Themes/AntDesignTheme/DefaultLayout.razor index bd133d7..9a1e0d5 100644 --- a/modules/AntDesignTheme/Lsw.Abp.AspnetCore.Components.Web.AntDesignTheme/Themes/AntDesignTheme/DefaultLayout.razor +++ b/modules/AntDesignTheme/Lsw.Abp.AspnetCore.Components.Web.AntDesignTheme/Themes/AntDesignTheme/DefaultLayout.razor @@ -2,6 +2,9 @@ @using Microsoft.Extensions.Options @using Lsw.Abp.AspnetCore.Components.Web.AntDesignTheme.Settings @using Lsw.Abp.AspnetCore.Components.Web.AntDesignTheme.Components +@using Lsw.Abp.AspnetCore.Components.Web.AntDesignTheme.Layout +@using Volo.Abp.Ui.LayoutHooks +@using Lsw.Abp.AspnetCore.Components.Web.AntDesignTheme.Components.LayoutHooks @inject IOptions Options @@ -18,7 +21,9 @@
+ @Body +
@@ -60,13 +65,16 @@ else
- @if (!Options.Value.EnableMultipleTabs){ + + @if (!Options.Value.EnableMultipleTabs) + { @Body } else { } +