Browse Source

vue-scroll引入

main
pixel 5 years ago
parent
commit
d08796d02f
  1. 4
      QMPlusVuePage/src/view/layout/aside/index.vue
  2. 2
      QMPlusVuePage/src/view/layout/index.vue

4
QMPlusVuePage/src/view/layout/aside/index.vue

@ -4,8 +4,8 @@
<i class="el-icon-arrow-right" v-if="isCollapse"></i> <i class="el-icon-arrow-right" v-if="isCollapse"></i>
<i class="el-icon-arrow-left" v-else></i> <i class="el-icon-arrow-left" v-else></i>
</div> </div>
<transition name="el-zoom-in-top">
<el-scrollbar style="height:calc(100vh - 53px)"> <el-scrollbar style="height:calc(100vh - 53px)">
<transition name="el-zoom-in-top">
<el-menu <el-menu
:class="['el-menu-vertical',!isCollapse&&'noCollapse']" :class="['el-menu-vertical',!isCollapse&&'noCollapse']"
:collapse="isCollapse" :collapse="isCollapse"
@ -19,8 +19,8 @@
v-for="item in asyncRouters[0].children" v-for="item in asyncRouters[0].children"
/> />
</el-menu> </el-menu>
</el-scrollbar>
</transition> </transition>
</el-scrollbar>
</div> </div>
</template> </template>

2
QMPlusVuePage/src/view/layout/index.vue

@ -108,7 +108,7 @@ $mainHight: calc(100vh - 52px);
} }
.el-menu-vertical { .el-menu-vertical {
height: $mainHight !important;
height: calc(100vh - 67px) !important;
visibility: auto; visibility: auto;
&.noCollapse { &.noCollapse {
width: 250px; width: 250px;

Loading…
Cancel
Save