feat: added vuescroll

This commit is contained in:
Nicolas Giard
2018-11-25 22:10:20 -05:00
parent 964712905b
commit a7fc560573
6 changed files with 126 additions and 77 deletions

View File

@@ -11,8 +11,9 @@
:temporary='$vuetify.breakpoint.xs'
v-model='navShown'
)
nav-sidebar
slot(name='sidebar')
vue-scroll(:ops='scrollStyle')
nav-sidebar
slot(name='sidebar')
v-content
template(v-if='path !== `home`')
@@ -182,7 +183,25 @@ export default {
{ path: '/universe/galaxy', name: 'Galaxy' },
{ path: '/universe/galaxy/solar-system', name: 'Solar System' },
{ path: '/universe/galaxy/solar-system/planet-earth', name: 'Planet Earth' }
]
],
scrollStyle: {
vuescroll: {},
scrollPanel: {
initialScrollX: 0.01, // fix scrollbar not disappearing on load
scrollingX: false,
speed: 50
},
rail: {
gutterOfEnds: '2px'
},
bar: {
onlyShowBarOnScroll: false,
background: '#42A5F5',
hoverStyle: {
background: '#64B5F6'
}
}
}
}
},
computed: {