管网地址:https://chenxuan1993.gitee.io/component-document/index_prod#/component/seamless-default
下载:
npm install vue-seamless-scroll --save
# or
yarn add vue-seamless-scroll --save
使用
import vueSeamlessScroll from 'vue-seamless-scroll'
//注册组件
components:{
vueSeamlessScroll
}
//template
<vue-seamless-scroll :data="Top10GatewayLog" :class-option="optionSingleHeightTime" class="seamless-warp">
<ul class="item">
<li v-for="(item,index) in Top10GatewayLog" :key="index">
<span class="title" v-text="item"></span>
</li>
</ul>
</vue-seamless-scroll>