React后台管理系统-NavSide侧边栏组件

Posted wangyawei

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了React后台管理系统-NavSide侧边栏组件相关的知识,希望对你有一定的参考价值。

 

  1. <div className="navbar-default navbar-side">
  2.                 <div className="sidebar-collapse">
  3.                     <ul className="nav">
  4.                         <li>
  5.                             <NavLink exact activeClassName="active-menu" to="/">
  6.                                 <i className="fa fa-dashboard"></i>
  7.                                 <span>首页</span>
  8.                             </NavLink>
  9.                         </li>
  10.                         <li className="active">
  11.                             <Link to="/product">
  12.                                 <i className="fa fa-list"></i>
  13.                                 <span>商品</span>
  14.                                 <span className="fa arrow"></span>
  15.                             </Link>
  16.                             <ul className="nav nav-second-level collapse in">
  17.                                 <li>
  18.                                     <NavLink to="/product" activeClassName="active-menu">商品管理</NavLink>
  19.                                 </li>
  20.                                 <li>
  21.                                     <NavLink to="/product-category" activeClassName="active-menu">品类管理</NavLink>
  22.                                 </li>
  23.                             </ul>
  24.                         </li>
  25.                         <li className="active">
  26.                             <Link to="/order">
  27.                                 <i className="fa fa-check-square-o"></i>
  28.                                 <span>订单</span>
  29.                                 <span className="fa arrow"></span>
  30.                             </Link>
  31.                             <ul className="nav nav-second-level collapse in">
  32.                                 <li>
  33.                                     <NavLink to="/order" activeClassName="active-menu">订单管理</NavLink>
  34.                                 </li>
  35.                             </ul>
  36.                         </li>
  37.                         <li className="active">
  38.                             <Link to="/user">
  39.                                 <i className="fa fa-user-o"></i>
  40.                                 <span>用户</span>
  41.                                 <span className="fa arrow"></span>
  42.                             </Link>
  43.                             <ul className="nav nav-second-level collapse in">
  44.                                 <li>
  45.                                     <NavLink to="/user" activeClassName="active-menu">用户管理</NavLink>
  46.                                 </li>
  47.                             </ul>
  48.                         </li>
  49.                     </ul>
  50.  
  51.                 </div>
  52.  
  53.             </div>

以上是关于React后台管理系统-NavSide侧边栏组件的主要内容,如果未能解决你的问题,请参考以下文章

使用 React 路由器更轻松地通过侧边栏导航动态呈现组件

vue+element 后台管理系统-折叠侧边导航栏

React Router 4.0 ---- 嵌套路由和动态路由

在 React 中动态更新导航栏和侧边栏的最佳方法是啥?

由于侧边栏和导航栏,React 中的未找到页面无法正常工作

使用 react-router-dom 停止页面中侧边栏的重新渲染