Giter Club home page Giter Club logo

Comments (4)

hangaoke1 avatar hangaoke1 commented on June 26, 2024

感谢建议,目前项目里滚动位置一般是通过配置vue-router的scrollBehavior实现的

from feb-alive.

jian-qin avatar jian-qin commented on June 26, 2024

额,好吧。这scrollBehavior只记录页面文档滚动位置,没有记录局部元素的滚动位置,有局限性对我来说没啥用。
我还是用自己的解决方案:截图

from feb-alive.

hangaoke1 avatar hangaoke1 commented on June 26, 2024

局部情况比较多,比如一个页面可能有多个局部滚动容器,所以这部分主要还是业务实现,不过你这个建议可以考虑插件提供一个公共方法简化业务使用类似业务需求

from feb-alive.

hangaoke1 avatar hangaoke1 commented on June 26, 2024

局部容器滚动高度建议自行封装scroll-view组件,将滚动高度同步保存至组件的data属性上,可参考uni-app在H5下实现的scroll-view组件

from feb-alive.

Related Issues (13)

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.