Fixed the issue of carousel migration
parent
b0de0eb8b3
commit
48eb6ee08c
|
|
@ -9,19 +9,12 @@
|
|||
|
||||
<script>
|
||||
import MusicBox from '../components/MusicBox'
|
||||
import Scrollbar from 'smooth-scrollbar'
|
||||
import HorizontalScrollPlugin from '../utility/HorizontalScrollPlugin'
|
||||
import Carousel from '../components/Carousel'
|
||||
Scrollbar.use(HorizontalScrollPlugin)
|
||||
|
||||
export default {
|
||||
name: 'MusicRow',
|
||||
props: ['items', 'title'],
|
||||
components: { MusicBox, Carousel },
|
||||
mounted () {
|
||||
let container = this.$el.getElementsByClassName('items')[0]
|
||||
Scrollbar.init(container, { overscrollEffect: 'bounce', continuousScrolling: true, horizontal: true })
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue