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