Commit a51eafb7 authored by baiyaaaaa's avatar baiyaaaaa Committed by 杨奕

add old value for input-number change event

parent 1db2d64d
...@@ -122,7 +122,7 @@ ...@@ -122,7 +122,7 @@
currentValue(newVal, oldVal) { currentValue(newVal, oldVal) {
let value = Number(newVal); let value = Number(newVal);
if (value <= this.max && value >= this.min) { if (value <= this.max && value >= this.min) {
this.$emit('change', value); this.$emit('change', value, oldVal);
this.$emit('input', value); this.$emit('input', value);
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment