Skip to content

Commit

Permalink
add old value for input-number change event
Browse files Browse the repository at this point in the history
  • Loading branch information
baiyaaaaa authored and Leopoldthecoder committed Dec 13, 2016
1 parent 1db2d64 commit a51eafb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/input-number/src/input-number.vue
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@
currentValue(newVal, oldVal) {
let value = Number(newVal);
if (value <= this.max && value >= this.min) {
this.$emit('change', value);
this.$emit('change', value, oldVal);
this.$emit('input', value);
}
}
Expand Down

0 comments on commit a51eafb

Please sign in to comment.