This commit is contained in:
Pan 2018-08-31 14:00:06 +08:00
parent 0f9774f5cf
commit 606bb7e7b5
2 changed files with 3 additions and 1 deletions

View File

@ -17,7 +17,6 @@ export default {
methods: { methods: {
handleScroll(e) { handleScroll(e) {
const eventDelta = e.wheelDelta || -e.deltaY * 40 const eventDelta = e.wheelDelta || -e.deltaY * 40
console.log(eventDelta)
const $scrollWrapper = this.$refs.scrollContainer.$refs.wrap const $scrollWrapper = this.$refs.scrollContainer.$refs.wrap
$scrollWrapper.scrollLeft = $scrollWrapper.scrollLeft + eventDelta / 4 $scrollWrapper.scrollLeft = $scrollWrapper.scrollLeft + eventDelta / 4
}, },

View File

@ -144,6 +144,9 @@ export default {
&:first-of-type { &:first-of-type {
margin-left: 15px; margin-left: 15px;
} }
&:last-of-type {
margin-right: 15px;
}
&.active { &.active {
background-color: #42b983; background-color: #42b983;
color: #fff; color: #fff;