refactor:add scroll-bar to sidebar

This commit is contained in:
Pan
2017-11-06 16:02:13 +08:00
parent 7451ed6299
commit 7e1ba16d12
5 changed files with 70 additions and 12 deletions

View File

@@ -21,7 +21,6 @@ export default {
const $containerWidth = $container.offsetWidth
const $wrapper = this.$refs.scrollWrapper
const $wrapperWidth = $wrapper.offsetWidth
console.log($containerWidth, $wrapperWidth)
if (e.wheelDelta > 0) {
this.left = Math.min(0, this.left + e.wheelDelta)
} else {