From 1a97815e6a4881d48d567255c6254766bcdcdaaf Mon Sep 17 00:00:00 2001 From: capdiem Date: Tue, 7 May 2024 15:31:32 +0800 Subject: [PATCH] =?UTF-8?q?=E2=AC=86=20chore:=20upgrade=20Masa.Blazor=20to?= =?UTF-8?q?=20v1.5.0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Layout/Navigation.razor | 35 +++++++++---------- .../Masa.Blazor.Pro.Client.csproj | 6 ++-- Masa.Blazor.Pro/Masa.Blazor.Pro.csproj | 2 +- 3 files changed, 21 insertions(+), 22 deletions(-) diff --git a/Masa.Blazor.Pro.Client/Layout/Navigation.razor b/Masa.Blazor.Pro.Client/Layout/Navigation.razor index 1fbb780..30674a2 100644 --- a/Masa.Blazor.Pro.Client/Layout/Navigation.razor +++ b/Masa.Blazor.Pro.Client/Layout/Navigation.razor @@ -12,7 +12,7 @@ MiniVariant="@GlobalConfig.ExpandOnHover" App> @@ -21,39 +21,39 @@ { if (nav.Children is null) { - - - + + + @nav.Icon -
@T(nav.Title)
+
@T(nav.Title)
-
-
-
+ + + } else { -
@T(nav.Title)
+
@T(nav.Title)
@foreach (var navChild in nav.Children) { - - - + + +
@T(navChild.Title)
-
-
-
+ + + }
@@ -73,8 +73,7 @@ @code { - [Inject] - public MasaBlazor Masa { get; set; } = default!; + [Inject] public MasaBlazor Masa { get; set; } = default!; private CancellationTokenSource? _cancellationTokenSource; @@ -125,4 +124,4 @@ GlobalConfig.ExpandOnHoverChanged -= GlobalConfigChanged; } -} +} \ No newline at end of file diff --git a/Masa.Blazor.Pro.Client/Masa.Blazor.Pro.Client.csproj b/Masa.Blazor.Pro.Client/Masa.Blazor.Pro.Client.csproj index 297406c..6bc9ee3 100644 --- a/Masa.Blazor.Pro.Client/Masa.Blazor.Pro.Client.csproj +++ b/Masa.Blazor.Pro.Client/Masa.Blazor.Pro.Client.csproj @@ -9,8 +9,8 @@ - - + + - + diff --git a/Masa.Blazor.Pro/Masa.Blazor.Pro.csproj b/Masa.Blazor.Pro/Masa.Blazor.Pro.csproj index 360cede..62efe03 100644 --- a/Masa.Blazor.Pro/Masa.Blazor.Pro.csproj +++ b/Masa.Blazor.Pro/Masa.Blazor.Pro.csproj @@ -8,7 +8,7 @@ - +