<el-input v-model="value" v-on:change="handleChange"></el-input> <el-input v-model="value" @change="handleChange"></el-input> <el-input v-model="value" v-on:input="handleChange"></el-input> <el-input v-model.trim="value" @input="handleChange" v-focus></el-input>
export default{ data() { return { value: '' } }, methods: { handleChange(value) { if (this.value) { this.value = parseInt(value); } } } }