1.安装vue-seamless-scroll 插件
npm install vue-seamless-scroll --save
2.引用并注册
import vueSeamless from "vue-seamless-scroll/src";
ps: vue3 需要添加 /src ,vue2不需要
components: {
vueSeamless,
},
3.使用
使用基本一致,只要把数据放到setup里面
1.安装vue-seamless-scroll 插件
npm install vue-seamless-scroll --save
2.引用并注册
import vueSeamless from "vue-seamless-scroll/src";
ps: vue3 需要添加 /src ,vue2不需要
components: {
vueSeamless,
},
3.使用
使用基本一致,只要把数据放到setup里面