vue 无线滚动插件,
npm install vue-seamless-scroll –saveimport Vue from 'vue'import scroll from 'vue-seamless-scroll'Vue.use(scroll)//or you can set componentName default componentName is vue-seamless-scrollVu...
npm install vue-seamless-scroll –save
import Vue from 'vue'
import scroll from 'vue-seamless-scroll'
Vue.use(scroll)
//or you can set componentName default componentName is vue-seamless-scroll
Vue.use(scroll,{componentName: 'scroll-seamless'})
<vue-seamless-scroll
:data="projectDesList"
:class-option="optionSetting" //参数配置,计算属性
class="seamless-warp"
>
<ul class="item">
<li v-for="(item,key) in projectDesList" :key>
<span class="title" v-text="item.title"></span>
</li>
</ul>
</vue-seamless-scroll>
更多推荐
所有评论(0)