<uni-forms ref="calcForm" :modelValue="formData" :rules="rules" :label-width="200">
<uni-forms-item
label="性别"
name="sex"
required
:rules="[{ required: true, message: '请选择性别' }]"
>
<uni-data-select v-model="formData.sex" :localdata="sexRange"></uni-data-select>
</uni-forms-item>
校验无效果,直接跳出成功,不选中无所谓
0 个回复