浏览代码

add old value for input-number change event

baiyaaaaa 8 年之前
父节点
当前提交
a51eafb705
共有 1 个文件被更改,包括 1 次插入1 次删除
  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);
         }
       }