Преглед на файлове

InputNumber: change event should fire after input event (#10553)

杨奕 преди 7 години
родител
ревизия
1790d2c9fd
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      packages/input-number/src/input-number.vue

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

@@ -196,8 +196,8 @@
           this.$refs.input.setCurrentValue(this.currentValue);
           return;
         }
-        this.$emit('change', newVal, oldVal);
         this.$emit('input', newVal);
+        this.$emit('change', newVal, oldVal);
         this.currentValue = newVal;
       },
       handleInputChange(value) {