input 输入框效验
1:只能输入正整数:
<el-input v-model.number="formData.projectNum" type='number' min="1" size="small" placeholder="输入数量" onkeyup="if(this.value.length==1){this.value=this.value.replace(/[^1-9]/g,'')} else{this.value=this.value.replace(/D/g,'')}" onafterpaste="if(this.value.length==1){this.value=this.value.replace(/[^1-9]/g,'')} else{this.value=this.value.replace(/D/g,'')}"/>