소스 검색

新增菜单导航显示风格(default为左侧导航菜单,topnav为顶部导航菜单)

RuoYi 4 년 전
부모
커밋
2b0e3546ff
2개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 1 1
      ruoyi-admin/src/main/resources/static/js/resize-tabs.js
  2. 2 2
      ruoyi-admin/src/main/resources/templates/index-topnav.html

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 1 - 1
ruoyi-admin/src/main/resources/static/js/resize-tabs.js


+ 2 - 2
ruoyi-admin/src/main/resources/templates/index-topnav.html

@@ -45,8 +45,8 @@
 			</div>
 			
             <!-- 左侧菜单 -->
-			<th:block th:each="menu : ${menus}">
-			<div class="tab-pane fade height-full" th:id="|menu_${menu.menuId}|" th:classappend="${menu.menuId == 1} ? |active in|">
+			<th:block th:each="menu,menuStat : ${menus}">
+			<div class="tab-pane fade height-full" th:id="|menu_${menu.menuId}|" th:classappend="${menuStat.first} ? |active in|">
 			  <ul class="nav">
                 <li th:each="cmenu : ${menu.children}">
 			      <a class="menu-content" th:if="${#lists.isEmpty(cmenu.children)}" th:href="@{${cmenu.url}}" th:classappend="${#strings.isEmpty(cmenu.target)} ? |menuItem| : ${cmenu.target}">