参考文章:https://blog.csdn.net/Shids_/article/details/121925398
使用步骤:
1、安装插件
npm i vue-seamless-scroll
2、main.js里全局引入
import scroll from 'vue-seamless-scroll'
Vue.use(scroll)
3、dom渲染
4、配置项
另外,如果的react可以参考插件 "react-seamless-scroll"(不太好用)
参考文章:https://blog.csdn.net/Shids_/article/details/121925398
使用步骤:
1、安装插件
npm i vue-seamless-scroll
2、main.js里全局引入
import scroll from 'vue-seamless-scroll'
Vue.use(scroll)
3、dom渲染
4、配置项
另外,如果的react可以参考插件 "react-seamless-scroll"(不太好用)