refactor: 更改 Layout 母版页

This commit is contained in:
Argo-Cloud 2020-12-25 01:55:39 +08:00
parent 531cafc11c
commit 49b33137e6
4 changed files with 8 additions and 8 deletions

View File

@ -1,4 +1,4 @@
@inherits AdminLayoutComponentBase
@inherits LayoutComponentBase
@layout DefaultLayout
<CascadingValue Value=this Name="Admin">

View File

@ -1,12 +1,12 @@
using Bootstrap.Admin.Pages.Shared;
using Bootstrap.Admin.Pages.Components;
using Microsoft.AspNetCore.Components;
namespace Bootstrap.Admin.Pages.Components
namespace Bootstrap.Admin.Pages.Shared
{
/// <summary>
/// AdminLayout 布局类
/// </summary>
public class AdminLayoutComponentBase : LayoutComponentBase
public partial class AdminLayout
{
/// <summary>
///

View File

@ -1,4 +1,4 @@
@inherits DefaultLayoutComponentBase
@inherits LayoutComponentBase
<CascadingValue Value=this Name="Default">
<Header @ref="Header" Icon="@Model.Icon" @bind-DisplayName="DisplayName" @bind-WebTitle="WebTitle"/>

View File

@ -1,6 +1,6 @@
using Bootstrap.Admin.Models;
using Bootstrap.Admin.Pages.Components;
using Bootstrap.Admin.Pages.Extensions;
using Bootstrap.Admin.Pages.Shared;
using Microsoft.AspNetCore.Components;
using Microsoft.AspNetCore.Components.Authorization;
using Microsoft.AspNetCore.Components.Routing;
@ -11,12 +11,12 @@ using System;
using System.Net;
using System.Threading.Tasks;
namespace Bootstrap.Admin.Pages.Components
namespace Bootstrap.Admin.Pages.Shared
{
/// <summary>
///
/// </summary>
public class DefaultLayoutComponentBase : LayoutComponentBase
public partial class DefaultLayout
{
/// <summary>
///