no message

Former-commit-id: 1ac3bd03bae422250aff66e0b8c0aae9b29285f0 [formerly 1ac3bd03bae422250aff66e0b8c0aae9b29285f0 [formerly 1ac3bd03bae422250aff66e0b8c0aae9b29285f0 [formerly 1ac3bd03bae422250aff66e0b8c0aae9b29285f0 [formerly 7e0101f9a81843e15b8b370af9b141743561bc1a [formerly 079246c38007a7f992da0143d189e8f4208abfc0]]]]]
Former-commit-id: a4b0a025eb79b04147f1fff967feb01e90a3aee1
Former-commit-id: b365c4518265586113e5568b025d984c16b58190
Former-commit-id: 311812a0cbdd1a8d62c1e28697272df6b69d0abc [formerly 1ab69e8804c4af35df22231f92aee5f83ee383aa]
Former-commit-id: 219aa552ce1cdcc6aebfef9e783e247a78f3faab
Former-commit-id: 52c59f5eb9f4cf8838cc1ae7d43f0af77715bc6b
Former-commit-id: 30c6354133e3276ee00f558f2f5747c01c192b8f
Former-commit-id: 98a603b4e2766420e13c4e4b77c10cf7411f9b51
Former-commit-id: 0d42b47cca18516955a262f6c9970ce2810b5a98
This commit is contained in:
liyang
2018-07-01 20:23:07 +08:00
parent b282fc3f61
commit 1d45ccbd18

View File

@@ -1,5 +1,5 @@
<template>
<div style="height: 100%;">
<div style="height: 100%;" class="d2-layout-main-menu-side">
<el-menu
:collapse="collapse"
:unique-opened="true"
@@ -24,6 +24,8 @@ import menuMixin from '../mixin/menu'
// 组件
import d2LayoutMainMenuItem from '../-menu-item/index.vue'
import d2LayoutMainMenuSub from '../-menu-sub/index.vue'
// 插件
import BScroll from 'better-scroll'
export default {
name: 'd2-layout-main-menu-side',
@@ -45,7 +47,8 @@ export default {
return {
menus: [],
active: '',
asideHeight: 300
asideHeight: 300,
BS: null
}
},
watch: {
@@ -67,7 +70,20 @@ export default {
beforeDestroy () {
window.onresize = function () {}
},
methods: {
mounted () {
this.BS = new BScroll(this.$el, {
mouseWheel: true,
scrollbar: {
fade: true,
interactive: false
}
})
}
}
</script>
<style lang="scss">
.d2-layout-main-menu-side {
position: relative;
}
</style>