mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-08-06 21:39:45 +08:00
parent
eaf513bf2f
commit
c088113714
@ -62,7 +62,7 @@ VantComponent({
|
||||
this.dragStatus = 'draging';
|
||||
|
||||
getRect(this, '.van-slider').then((rect) => {
|
||||
const diff = (this.deltaX / rect.width) * this.data.max;
|
||||
const diff = (this.deltaX / rect.width) * this.getRange();
|
||||
this.newValue = this.startValue + diff;
|
||||
this.updateValue(this.newValue, false, true);
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user