vue2 introduces better-scroll, instantiation:
const wrapper = document.querySelector(".wrapper")
const scroll = new BScroll(".wrapper",{
click:true
})
< template >
< div class= "singer" >
<div class="wrapper">
<div class="content">
<ul>
<li v-for="item in singerList"></li>
</ul>
</div>
</div>
< / div >
< / template >
.singer {
position: fixed;
width: 100%;
top: 60px;
bottom: 0;
}
.wrapper {
height: 100%;
overflow: hidden;
}
then
but I can"t scroll. How should I write it? I"m learning. I don"t know much. Thank you very much.