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>

Logo

前往低代码交流专区

更多推荐