mirror of
https://gitee.com/ElemeFE/element.git
synced 2024-12-02 04:08:10 +08:00
add old value for input-number change event
This commit is contained in:
parent
1db2d64ddc
commit
a51eafb705
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user