Comments (8)
@k186 麻烦大佬再看下哈。
from pd-select.
from pd-select.
value(val, oldValue) {
if (val != oldValue) {
Object.assign(this.$data, this.$options.data());
this.init(false);
}
}
这个代码,不使用的时候,滑块滑动的速度是正常的。反之拨动一下滑块,滑块就会持续旋转一段时间,导致有时候无法选取正确的滑块值,而且有时候滑块值点击时会迅速改变成其它值
from pd-select.
@huangjian199304 你代码拉错了吧。。。最新代码没这句话。。。看分支。。这个是以前的一个hack 代码 已经去掉了的
from pd-select.
这段代码可以重置这个滑块值吧,我现在需要的就是这个功能,所以问下大佬这段代码是不是可以修改下,正常的重置滑块值为初始值 @k186
from pd-select.
@huangjian199304 不能放在watch 里面。。
from pd-select.
那应该另写方法,实现这段代码吗,然后别处重置时调用这个方法吗?大佬。 @k186
from pd-select.
from pd-select.
Related Issues (12)
- There's a npm missing from the package.json HOT 1
- package.json的main路径写错了 HOT 1
- 用作获取时间的组件,对v-model值重新赋值,然后调用init()方法之后,显示选中的值不对 HOT 4
- 初始化值有问题
- 请问有事件可以监听动画停止吗 我加个按钮点快的时候就拿不到值了 HOT 3
- 首次加载滚动框留白 HOT 1
- 当前初始值不存在,请检查后listData范围!! HOT 3
- type为line时显示出现问题
- 使用组件出错 HOT 3
- v-model 值改变时,dom选中项未改变 HOT 21
- 事件绑定错误 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pd-select.