Browse Source

perf[sidebar.css]: perf collapse transition

Pan 7 years ago
parent
commit
b97702d628
2 changed files with 3 additions and 1 deletions
  1. 3 0
      src/styles/sidebar.scss
  2. 0 1
      src/views/layout/components/Sidebar/index.vue

+ 3 - 0
src/styles/sidebar.scss

@@ -7,6 +7,9 @@
   }
   // 侧边栏
   .sidebar-container {
+    .horizontal-collapse-transition {
+      transition: 0s width ease-in-out, 0s padding-left ease-in-out, 0s padding-right ease-in-out;
+    }
     transition: width .28s;
     width: 180px !important;
     height: 100%;

+ 0 - 1
src/views/layout/components/Sidebar/index.vue

@@ -2,7 +2,6 @@
   <scroll-bar>
     <el-menu
       mode="vertical"
-      :collapse-transition="false"
       :show-timeout="200"
       :default-active="$route.path"
       :collapse="isCollapse"