https://www.antdv.com/components/input-number-cn/#-
做数字输入框的时候 触发事件改成 失去焦点就触发 获取input里面值的方法 这么写
<a-input-number style=‘width:63px‘ :min="1" :max="100000" :default-value="3" @blur="onChange" />
methods: {
onChange(e) {
console.log( e.target.value);
},
},
事件触发方法获取当前值的写法
原文:https://www.cnblogs.com/kaibindirver/p/13894418.html