Browse Source

add old value for input-number change event

baiyaaaaa 8 years ago
parent
commit
a51eafb705
1 changed files with 1 additions and 1 deletions
  1. 1 1
      packages/input-number/src/input-number.vue

+ 1 - 1
packages/input-number/src/input-number.vue

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