Giter VIP home page Giter VIP logo

Comments (8)

huangjian199304 avatar huangjian199304 commented on June 7, 2024

@k186 麻烦大佬再看下哈。

from pd-select.

k186 avatar k186 commented on June 7, 2024

from pd-select.

huangjian199304 avatar huangjian199304 commented on June 7, 2024

value(val, oldValue) {
if (val != oldValue) {
Object.assign(this.$data, this.$options.data());
this.init(false);
}
}
这个代码,不使用的时候,滑块滑动的速度是正常的。反之拨动一下滑块,滑块就会持续旋转一段时间,导致有时候无法选取正确的滑块值,而且有时候滑块值点击时会迅速改变成其它值

from pd-select.

k186 avatar k186 commented on June 7, 2024

@huangjian199304 你代码拉错了吧。。。最新代码没这句话。。。看分支。。这个是以前的一个hack 代码 已经去掉了的

from pd-select.

huangjian199304 avatar huangjian199304 commented on June 7, 2024

这段代码可以重置这个滑块值吧,我现在需要的就是这个功能,所以问下大佬这段代码是不是可以修改下,正常的重置滑块值为初始值 @k186

from pd-select.

k186 avatar k186 commented on June 7, 2024

@huangjian199304 不能放在watch 里面。。

from pd-select.

huangjian199304 avatar huangjian199304 commented on June 7, 2024

那应该另写方法,实现这段代码吗,然后别处重置时调用这个方法吗?大佬。 @k186

from pd-select.

k186 avatar k186 commented on June 7, 2024

from pd-select.

Related Issues (12)

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.