Comments (7)
你这个vue-fullpage怎么点击一个按钮进入下一个页面啊?
from vue-fullpage.
你这个vue-fullpage怎么点击一个按钮进入下一个页面啊?
NO1:分析源码,
NO2:解析 得出
因为main.js 里面use 了 fullpage 所以
在点击事件内,取出 this.$fullpage,能拿到所有方法
{install: ƒ, initAnimate: ƒ, addAnimated: ƒ, removeAnimated: ƒ, assignOpts: ƒ, …} addAnimated: ƒ (el, animate) assignOpts: ƒ (option) curIndex: 1 el: div.fullpage-wp height: 768 init: ƒ (el, options, vnode) initAnimate: ƒ (el, binding, vnode) initEvent: ƒ (el) initScrollDirection: ƒ () install: ƒ (Vue, options) move: ƒ (dist) moveTo: ƒ (curIndex, anim) o: {der: 0.1, …} pageEles: HTMLCollection(7) [div.page-1.page, div.page-2.page, div.page-3.page, div.page-4.page, div.page-5.page, div.page-6.page, div.page-7.page] parentEle: div.fullpage-container prevIndex: 1 removeAnimated: ƒ (el, animate) startX: 184 startY: 572 total: 7
NO3: 所以分析得出 this.$fullpage.moveTo(1,false);
就是你想要的
from vue-fullpage.
目前只支持移动端的手势滑动。
from vue-fullpage.
你这边有没有可以设置一个按钮来兼容PC端让它跳到下一个或者上一个页面酱紫
from vue-fullpage.
请问用vue-cli生成的1.0的页面该怎么实现fullpage
from vue-fullpage.
目前只支持移动端的手势滑动。
请问下 为什么在手机上显示的我的的一屏上的有些盒子显示不出来? 在谷歌模拟器上就是好的
from vue-fullpage.
你这边有没有可以设置一个按钮来兼容PC端让它跳到下一个或者上一个页面酱紫
this.$fullpage.moveTo(1,false);
from vue-fullpage.
Related Issues (20)
- ios uc浏览器滚动有问题
- 安卓版的微信浏览器里下拉会露底(显示网页由url:abc提供) HOT 3
- 全屏问题 HOT 3
- scrollOverflow:true HOT 3
- vm.$on事件多次触发
- 这个只可以在移动端用么,在网页中不可以用么,不支持鼠标滚动么 HOT 1
- iphone6滑屏的时候出现卡顿
- Use it on desktop ? HOT 3
- 滚动时的效果
- 有demo源码吗?
- 按照你文档中的步骤安装了vue-fullpage,跑起来就报错了!
- 太变态了,绑定了这么多事件
- 不能向上滑动返回上一页吗?
- 推荐使用 vue-router 的过渡动效/Recommended use vue-router's transition support
- ios下没有解决橡皮筋效果,滑动时候用户体验不好
- Feature request: programatically switch section HOT 2
- 第二页触发vue双向绑定时会返回到第一页 HOT 6
- 这个支持ssr吗?
- 有没有在opt对象中设置一个key,控制页面向下滑动能不能执行
- 只支持手机,不支持PC端 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vue-fullpage.