如下代码验证非负数
<el-form
ref="editForm"
label-width="auto"
:model="editForm"
:rules="rules"
>
<el-form-item label="数字:" prop="num">
<el-input placeholder="请输入"
v-model="editForm.num" width="400"></el-input>
</el-form-item>
<el