+
+
+
+
+ @if (Options.Value.RenderToolbar)
+ {
@if (Toolbar == null)
{
@ChildContent
}
-
@foreach (var toolbarItemRender in ToolbarItemRenders)
{
-
- }
+ }
+
+@if (Options.Value.RenderPageTitle)
+{
+
@PageLayout.Title
+}
diff --git a/modules/Lsw.Abp.AspnetCore.Components.Web.AntDesignTheme/Layout/PageLayout.cs b/modules/Lsw.Abp.AspnetCore.Components.Web.AntDesignTheme/Layout/PageLayout.cs
index 4f0a0ff..5a6cfcb 100644
--- a/modules/Lsw.Abp.AspnetCore.Components.Web.AntDesignTheme/Layout/PageLayout.cs
+++ b/modules/Lsw.Abp.AspnetCore.Components.Web.AntDesignTheme/Layout/PageLayout.cs
@@ -8,15 +8,15 @@ namespace Lsw.Abp.AspnetCore.Components.Web.AntDesignTheme.Layout;
public class PageLayout : IScopedDependency, INotifyPropertyChanged
{
- private string title;
+ private string _title;
// TODO: Consider using this property for setting Page Title too.
public virtual string Title
{
- get => title;
+ get => _title;
set
{
- title = value;
+ _title = value;
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(nameof(Title)));
}
}
diff --git a/modules/Lsw.Abp.AspnetCore.Components.Web.AntDesignTheme/Themes/AntDesignTheme/Branding.razor b/modules/Lsw.Abp.AspnetCore.Components.Web.AntDesignTheme/Themes/AntDesignTheme/Branding.razor
index 4baf819..2af5849 100644
--- a/modules/Lsw.Abp.AspnetCore.Components.Web.AntDesignTheme/Themes/AntDesignTheme/Branding.razor
+++ b/modules/Lsw.Abp.AspnetCore.Components.Web.AntDesignTheme/Themes/AntDesignTheme/Branding.razor
@@ -1,10 +1,15 @@
@using Volo.Abp.Ui.Branding
@inject IBrandingProvider BrandingProvider
+
-
- @if (!BrandingProvider.LogoUrl.IsNullOrWhiteSpace())
- {
-
- }
- @BrandingProvider.AppName
-
diff --git a/modules/Lsw.Abp.AspnetCore.Components.Web.AntDesignTheme/Themes/AntDesignTheme/Branding.razor.cs b/modules/Lsw.Abp.AspnetCore.Components.Web.AntDesignTheme/Themes/AntDesignTheme/Branding.razor.cs
new file mode 100644
index 0000000..4b4675d
--- /dev/null
+++ b/modules/Lsw.Abp.AspnetCore.Components.Web.AntDesignTheme/Themes/AntDesignTheme/Branding.razor.cs
@@ -0,0 +1,9 @@
+using Microsoft.AspNetCore.Components;
+
+namespace Lsw.Abp.AspnetCore.Components.Web.AntDesignTheme.Themes.AntDesignTheme;
+
+public partial class Branding
+{
+ [Parameter]
+ public bool Collapsed { get; set; }
+}
diff --git a/modules/Lsw.Abp.AspnetCore.Components.Web.AntDesignTheme/Themes/AntDesignTheme/DefaultLayout.razor b/modules/Lsw.Abp.AspnetCore.Components.Web.AntDesignTheme/Themes/AntDesignTheme/DefaultLayout.razor
index ba84a2f..6efa5cd 100644
--- a/modules/Lsw.Abp.AspnetCore.Components.Web.AntDesignTheme/Themes/AntDesignTheme/DefaultLayout.razor
+++ b/modules/Lsw.Abp.AspnetCore.Components.Web.AntDesignTheme/Themes/AntDesignTheme/DefaultLayout.razor
@@ -2,45 +2,69 @@
@using Microsoft.Extensions.Options
@inject IOptions
Options
+@{
+ var sideTheme = Options.Value.Menu.Theme == MenuTheme.Light ? SiderTheme.Light : SiderTheme.Dark;
+ var light = Options.Value.Menu.Theme == MenuTheme.Light;
+}
+
@if (Options.Value.Menu.Place == MenuOptions.MenuPlace.Top)
{
+ var headerTopClass = light ? "ant-design-header-top ant-design-header-top-light" : "ant-design-header-top";
-
}
else
{
+ var headerLeftClass = light ? "ant-design-header-left ant-design-header-left-light" : "ant-design-header-left";
-
-
+
+
-
-
+