Giter Club home page Giter Club logo

Comments (3)

KuangPF avatar KuangPF commented on July 23, 2024

因为联动需要循环,第一级或者第二级改变都需要遍历一遍数组,省市可能数据量比较大,然后就出现了卡顿,不知道你是在什么机型上测试的,不过按道理来讲的话,应该也不会卡的不要不要的吧...如果真是这样,那就看这边能不能优化下。

from mpvue-picker.

yeyifen avatar yeyifen commented on July 23, 2024

抱歉,描述得有点粗糙,重现的情况是这样的:在一个界面,用了这个插件,同时还存在其他input输入框的时候,这个插件本身不卡,但在input输入框快速输入或删除时,肉眼可见的卡。目前我这边做测试的机型有835 cpu、8G内存的小米手机,还有iPhone X,都是一样。
之前用了mpvue上isuse中有人提到的大数据更新方法,但感觉还是不理想,因为他是延迟50ms才执行渲染的。目前我这边写死让这种大的数据不走vue,不让他检测变动,感觉好low

from mpvue-picker.

KuangPF avatar KuangPF commented on July 23, 2024

已将 citypicker 单独出来,改变了城市数据结构,没有出现卡顿现象 mpvue-citypicker

from mpvue-picker.

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.