Vue
※前提条件:本文基于 Vue 2.0 创作
只可以输入数值
<el-input v-model.number="form.age"/>
对输入的字符串去掉前后空格
<el-input v-model.trim="xxxx">
コメント: