Git Product home page Git Product logo

Comments (5)

taomas avatar taomas commented on July 24, 2024

如果是判断某一个页面是否显示的话,可以使用v-if来对页面显不显示做判断。

from vue-fullpage.

Andy-yubing avatar Andy-yubing commented on July 24, 2024

结合vue-fullpage就会出现问题,要么是空白页,要么是滑不动

from vue-fullpage.

taomas avatar taomas commented on July 24, 2024

感谢反馈,该bug现已修复,麻烦执行一下npm install vue-fullpage --save将vue-fullpage更新到2.0.3版本后重试一下。

from vue-fullpage.

Andy-yubing avatar Andy-yubing commented on July 24, 2024

已经解决,谢谢! 能否说一下,是什么原因导致的呢?

from vue-fullpage.

taomas avatar taomas commented on July 24, 2024

是因为vue-fullpage的内部代码在页面状态更新的时候没有重新初始化,导致了获取当前页数的index和总页数的时候出现了失误。
现在在组件更新的时候执行了一次初始化vue-fullpage的状态就ok了。
具体代码:
https://github.com/wendaosanshou/vue-fullpage/blob/master/index.js#L23

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.