<el-form-item
label="年龄"
prop="age"
:rules="[
{ required: true, message: '年龄不能为空'},
{ type: 'number', message: '年龄必须为数字值'}
]"
<el-input type="age" v-model.number="numberValidateForm.age" autocomplete="off"></el-input>
<el-button type="primary" @click="submitForm('numberValidateForm')">提交</el-button>