This commit is contained in:
梁灏 2019-01-09 10:30:37 +08:00
parent 656cc1422e
commit eb6d85bee7

View file

@ -344,6 +344,13 @@
const modulus = this.handleDecimal(newPos,this.step);
const value = this.currentValue;
value[index] = newPos - modulus;
//
if (this.range) {
if (type === 'min' && value[0] > value[1]) value[1] = value[0];
if (type === 'max' && value[0] > value[1]) value[0] = value[1];
}
this.currentValue = [...value];
if (!this.dragging) {