perf:format code

This commit is contained in:
Pan
2017-11-27 10:46:08 +08:00
parent f876b9b678
commit c06baffb17
8 changed files with 24 additions and 25 deletions

View File

@@ -19,6 +19,11 @@ export default {
levelList: null
}
},
watch: {
$route() {
this.getBreadcrumb()
}
},
methods: {
getBreadcrumb() {
let matched = this.$route.matched.filter(item => item.name)
@@ -31,11 +36,6 @@ export default {
generateTitle(title) {
return this.$t('route.' + title)
}
},
watch: {
$route() {
this.getBreadcrumb()
}
}
}
</script>

View File

@@ -1,6 +1,6 @@
<template>
<div class='scroll-container' ref='scrollContainer' @mousewheel="handleScroll">
<div class='scroll-wrapper' ref='scrollWrapper' :style="{top: top + 'px'}">
<div class="scroll-container" ref="scrollContainer" @mousewheel="handleScroll">
<div class="scroll-wrapper" ref="scrollWrapper" :style="{top: top + 'px'}">
<slot></slot>
</div>
</div>

View File

@@ -1,6 +1,6 @@
<template>
<div class='scroll-container' ref='scrollContainer' @mousewheel="handleScroll">
<div class='scroll-wrapper' ref='scrollWrapper' :style="{left: left + 'px'}">
<div class="scroll-container" ref="scrollContainer" @mousewheel="handleScroll">
<div class="scroll-wrapper" ref="scrollWrapper" :style="{left: left + 'px'}">
<slot></slot>
</div>
</div>