add old value for input-number change event

pull/1707/head
baiyaaaaa 2016-12-13 11:28:42 +08:00 committed by 杨奕
parent 1db2d64ddc
commit a51eafb705
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}
}