Procházet zdrojové kódy

add old value for input-number change event

baiyaaaaa před 8 roky
rodič
revize
a51eafb705
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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);
         }
       }