From c21e3d06c077978bda0e592b714b504f4507b669 Mon Sep 17 00:00:00 2001 From: Argo Zhang Date: Sat, 17 Aug 2019 17:37:37 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BE=A7=E8=BE=B9=E6=A0=8F=E6=94=B6?= =?UTF-8?q?=E7=BC=A9=E9=85=8D=E7=BD=AE=E9=A1=B9=E7=94=9F=E6=95=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Bootstrap.Admin/Models/ModelBase.cs | 6 ++++++ Bootstrap.Admin/Views/Admin/Settings.cshtml | 2 +- Bootstrap.Admin/Views/Home/Index.cshtml | 4 ++++ Bootstrap.Admin/Views/Shared/_Layout.cshtml | 5 +++-- Bootstrap.DataAccess/Dict.cs | 8 +++++++- Bootstrap.DataAccess/Helper/DictHelper.cs | 6 ++++++ 6 files changed, 27 insertions(+), 4 deletions(-) diff --git a/Bootstrap.Admin/Models/ModelBase.cs b/Bootstrap.Admin/Models/ModelBase.cs index cf3f08a7..f7568fec 100644 --- a/Bootstrap.Admin/Models/ModelBase.cs +++ b/Bootstrap.Admin/Models/ModelBase.cs @@ -17,6 +17,7 @@ namespace Bootstrap.Admin.Models Theme = DictHelper.RetrieveActiveTheme(); IsDemo = DictHelper.RetrieveSystemModel(); ShowCardTitle = DictHelper.RetrieveCardTitleStatus() ? "" : "no-card-header"; + ShowSideBar = DictHelper.RetrieveSidebarStatus() ? "" : "sidebar-open"; } /// @@ -43,5 +44,10 @@ namespace Bootstrap.Admin.Models /// 是否显示卡片标题 /// public string ShowCardTitle { get; protected set; } + + /// + /// 是否收缩侧边栏 + /// + public string ShowSideBar { get; protected set; } } } diff --git a/Bootstrap.Admin/Views/Admin/Settings.cshtml b/Bootstrap.Admin/Views/Admin/Settings.cshtml index df265ebc..c45cacb4 100644 --- a/Bootstrap.Admin/Views/Admin/Settings.cshtml +++ b/Bootstrap.Admin/Views/Admin/Settings.cshtml @@ -87,7 +87,7 @@
- +
diff --git a/Bootstrap.Admin/Views/Home/Index.cshtml b/Bootstrap.Admin/Views/Home/Index.cshtml index 40b5cfb4..d82231f6 100644 --- a/Bootstrap.Admin/Views/Home/Index.cshtml +++ b/Bootstrap.Admin/Views/Home/Index.cshtml @@ -28,6 +28,10 @@ .breadcrumb { border-top: solid 1px #ddd !important; } + + .sidebar-open .sidebar-toggle-box .fa-bars { + transform: rotate(0); + } }
diff --git a/Bootstrap.Admin/Views/Shared/_Layout.cshtml b/Bootstrap.Admin/Views/Shared/_Layout.cshtml index 9e830cd2..f893ecfb 100644 --- a/Bootstrap.Admin/Views/Shared/_Layout.cshtml +++ b/Bootstrap.Admin/Views/Shared/_Layout.cshtml @@ -1,4 +1,5 @@ - +@model ModelBase + @@ -13,7 +14,7 @@ - +