|
|
@ -100,7 +100,8 @@ |
|
|
} |
|
|
} |
|
|
if (value > (this.max * scale)) { |
|
|
if (value > (this.max * scale)) { |
|
|
value = this.max * scale |
|
|
value = this.max * scale |
|
|
} |
|
|
} |
|
|
|
|
|
this.$emit("minus",value) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
if (type === "plus") { |
|
|
if (type === "plus") { |
|
|
@ -110,7 +111,8 @@ |
|
|
} |
|
|
} |
|
|
if (value < (this.min * scale)) { |
|
|
if (value < (this.min * scale)) { |
|
|
value = this.min * scale |
|
|
value = this.min * scale |
|
|
} |
|
|
} |
|
|
|
|
|
this.$emit("plus",value) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
this.inputValue = (value / scale).toFixed(String(scale).length - 1); |
|
|
this.inputValue = (value / scale).toFixed(String(scale).length - 1); |
|
|
|