Git Product home page Git Product logo

Comments (7)

E-GreeHe avatar E-GreeHe commented on July 24, 2024 1

你这个vue-fullpage怎么点击一个按钮进入下一个页面啊?

from vue-fullpage.

zhoupeihuang avatar zhoupeihuang commented on July 24, 2024 1

你这个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.

taomas avatar taomas commented on July 24, 2024

目前只支持移动端的手势滑动。

from vue-fullpage.

wLove-c avatar wLove-c commented on July 24, 2024

你这边有没有可以设置一个按钮来兼容PC端让它跳到下一个或者上一个页面酱紫

from vue-fullpage.

shenzudan avatar shenzudan commented on July 24, 2024

请问用vue-cli生成的1.0的页面该怎么实现fullpage

from vue-fullpage.

fuxiaoRebirth avatar fuxiaoRebirth commented on July 24, 2024

目前只支持移动端的手势滑动。

请问下 为什么在手机上显示的我的的一屏上的有些盒子显示不出来? 在谷歌模拟器上就是好的

from vue-fullpage.

zhoupeihuang avatar zhoupeihuang commented on July 24, 2024

你这边有没有可以设置一个按钮来兼容PC端让它跳到下一个或者上一个页面酱紫

this.$fullpage.moveTo(1,false);

from vue-fullpage.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.