ソースを参照

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) {