优化slider #6007

This commit is contained in:
xinxin.li 2019-12-10 11:23:46 +08:00
parent 54dc6ac4e7
commit cd308e20d8

View file

@ -397,10 +397,10 @@
this.currentValue = [...value];
if (!this.dragging) {
if (this.currentValue[index] !== this.oldValue[index]) {
this.emitChange();
this.oldValue[index] = this.currentValue[index];
}
// if (this.currentValue[index] !== this.oldValue[index]) {
this.emitChange();
// this.oldValue[index] = this.currentValue[index];
// }
}
},
handleDecimal(pos,step){